mirror of
https://github.com/tadfisher/gradle2nix.git
synced 2026-01-12 07:50:53 -05:00
Rewrite plugin, use filenames in lockfile
This commit is contained in:
@@ -4,26 +4,28 @@ plugins {
|
||||
application
|
||||
}
|
||||
|
||||
configurations {
|
||||
register("share")
|
||||
}
|
||||
configurations.register("share")
|
||||
|
||||
dependencies {
|
||||
implementation(kotlin("reflect"))
|
||||
implementation(project(":model"))
|
||||
implementation(libs.clikt)
|
||||
implementation(libs.gradle.toolingApi)
|
||||
implementation(libs.kotlinx.coroutines.core)
|
||||
implementation(libs.okio)
|
||||
implementation(libs.serialization.json)
|
||||
implementation(libs.slf4j.api)
|
||||
runtimeOnly(libs.slf4j.simple)
|
||||
implementation(libs.okio)
|
||||
implementation(libs.xmlutil)
|
||||
|
||||
"share"(project(":plugin", configuration = "shadow"))
|
||||
"share"(project(":plugin", configuration = "shadow")) {
|
||||
isTransitive = false
|
||||
}
|
||||
|
||||
testRuntimeOnly(kotlin("reflect"))
|
||||
//testRuntimeOnly(kotlin("reflect"))
|
||||
testImplementation(libs.kotest.assertions)
|
||||
testImplementation(libs.kotest.runner)
|
||||
testImplementation(libs.ktor.server.core)
|
||||
testImplementation(libs.ktor.server.netty)
|
||||
}
|
||||
|
||||
application {
|
||||
@@ -36,10 +38,6 @@ application {
|
||||
.rename("plugin.*\\.jar", "plugin.jar")
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(11)
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
test {
|
||||
resources {
|
||||
@@ -80,7 +78,7 @@ tasks {
|
||||
}
|
||||
systemProperties(
|
||||
"org.nixos.gradle2nix.share" to installDist.get().destinationDir.resolve("share"),
|
||||
"org.nixos.gradle2nix.m2" to rootDir.resolve("fixtures/repositories/m2").toURI().toString()
|
||||
"org.nixos.gradle2nix.m2" to "http://0.0.0.0:8989/m2"
|
||||
)
|
||||
}
|
||||
useJUnitPlatform()
|
||||
|
||||
Reference in New Issue
Block a user