47 lines
1.0 KiB
Plaintext
47 lines
1.0 KiB
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
import org.lemiesz.implementations
|
|
import org.lemiesz.libProject
|
|
import org.lemiesz.testImplementation
|
|
|
|
plugins {
|
|
kotlin("jvm") version libs.versions.kotlinVersion
|
|
id(libs.plugins.maven.publish.get().pluginId)
|
|
}
|
|
|
|
libProject(
|
|
group = "org.lemiesz",
|
|
projectId = "require",
|
|
version = "1.0.3"
|
|
) {
|
|
deps {
|
|
testImplementation(kotlin("test"))
|
|
implementations(
|
|
libs.kotlinx.coroutines.core,
|
|
libs.kotlin.atomicFu,
|
|
libs.stately.collections,
|
|
)
|
|
}
|
|
|
|
projectTasks {
|
|
withType<KotlinCompile> {
|
|
kotlinOptions.apply {
|
|
jvmTarget = libs.versions.jvmVersion.get()
|
|
// freeCompilerArgs = freeCompilerArgs + "-Xcontext-receivers"
|
|
}
|
|
}
|
|
}
|
|
|
|
publish(
|
|
user = "developer",
|
|
pass = "9UPX+lkrCl2q8EdBBHIp0wQ/blqydMJ/LDQPQ/mm+/qM4khhh4HJgwERU099+nh3"
|
|
)
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|