0ea9c1fbce
scripting-dependencies-maven actually depended on both maven.resolver and Aether dependencies, it caused an issue in KScript (https://github.com/holgerbrandl/kscript/issues/345) and caused some issues in the past. These problems were partially solved with exclude() which is now removed.
43 lines
1.3 KiB
Kotlin
43 lines
1.3 KiB
Kotlin
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
project.updateJvmTarget("1.6")
|
|
|
|
dependencies {
|
|
implementation(kotlinStdlib())
|
|
api(project(":kotlin-scripting-dependencies"))
|
|
|
|
implementation("org.apache.maven:maven-core:3.8.5")
|
|
implementation("org.apache.maven.wagon:wagon-http:3.5.1")
|
|
implementation("org.apache.maven.resolver:maven-resolver-connector-basic:1.8.0")
|
|
implementation("org.apache.maven.resolver:maven-resolver-transport-file:1.8.0")
|
|
implementation("org.apache.maven.resolver:maven-resolver-transport-wagon:1.8.0")
|
|
implementation("org.apache.maven.resolver:maven-resolver-impl:1.8.0")
|
|
|
|
testImplementation(projectTests(":kotlin-scripting-dependencies"))
|
|
testImplementation(commonDependency("junit"))
|
|
testRuntimeOnly("org.slf4j:slf4j-nop:1.7.36")
|
|
testImplementation(kotlin("reflect"))
|
|
testImplementation(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core"))
|
|
kotlinCompilerClasspath(project(":libraries:tools:stdlib-compiler-classpath"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
"-Xallow-kotlin-package"
|
|
)
|
|
}
|
|
|
|
publish()
|
|
|
|
runtimeJar()
|
|
sourcesJar()
|
|
javadocJar()
|