mirror of
https://github.com/tadfisher/gradle2nix.git
synced 2026-01-11 15:30:38 -05:00
Generate buildSrc env
This commit is contained in:
@@ -13,7 +13,9 @@ application {
|
||||
applicationName = "gradle2nix"
|
||||
applicationDefaultJvmArgs += "-Dorg.nixos.gradle2nix.initScript=@APP_HOME@/gradle/init.gradle"
|
||||
applicationDistribution
|
||||
.from(tasks.getByPath(":plugin:shadowJar"))
|
||||
.from(
|
||||
tasks.getByPath(":plugin:shadowJar"),
|
||||
project(":plugin").file("src/main/resources/init.gradle"))
|
||||
.into("gradle")
|
||||
.rename("plugin.*\\.jar", "plugin.jar")
|
||||
}
|
||||
|
||||
2
app/src/dist/gradle/init.gradle
vendored
2
app/src/dist/gradle/init.gradle
vendored
@@ -1,3 +1,5 @@
|
||||
package org.nixos.gradle2nix
|
||||
|
||||
initscript {
|
||||
dependencies {
|
||||
classpath files("plugin.jar")
|
||||
|
||||
Reference in New Issue
Block a user