Skip to content

Commit

Permalink
A new module for Kotlin sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Nov 5, 2024
1 parent 6df054b commit 28cf15a
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
32 changes: 32 additions & 0 deletions api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion

plugins {
kotlin("jvm") version "2.0.21"
`java-gradle-plugin`
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlin {
explicitApi()
compilerOptions {
// https://docs.gradle.org/current/userguide/compatibility.html#kotlin
apiVersion = KotlinVersion.KOTLIN_1_8
jvmTarget = JvmTarget.JVM_1_8
}
}

dependencies {
implementation("org.jdom:jdom2:2.0.6.1")
implementation("org.ow2.asm:asm-commons:9.7.1")
implementation("commons-io:commons-io:2.17.0")
implementation("org.apache.ant:ant:1.10.15")
implementation("org.codehaus.plexus:plexus-utils:4.0.2")
implementation("org.codehaus.plexus:plexus-xml:4.0.4")
implementation("org.apache.logging.log4j:log4j-core:2.24.1")
implementation("org.vafer:jdependency:2.11")
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.github.jengelman.gradle.plugins.shadow.legacy

import org.gradle.api.Plugin
import org.gradle.api.Project

/**
* Empty plugin to still have the `com.github.johnrengelman.shadow` plugin applied.
*
* This allows older build logic to keep on working as if that old plugin ID was applied.
*/
public class LegacyShadowPlugin : Plugin<Project> {
override fun apply(project: Project): Unit = Unit
}
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ spotless {

dependencies {
compileOnly(localGroovy())
api(projects.api)

implementation("org.jdom:jdom2:2.0.6.1")
implementation("org.ow2.asm:asm-commons:9.7.1")
Expand Down
3 changes: 3 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ dependencyResolutionManagement {
rootProject.name = "shadow"

enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

include(":api")

0 comments on commit 28cf15a

Please sign in to comment.