Skip to content
Permalink
Browse files
remove gradle warnings
  • Loading branch information
paulk-asert committed Apr 1, 2022
1 parent 3cb5f50 commit 8f5a00dbbc2995765f389f21bfd17424b87285a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
@@ -167,7 +167,7 @@ tasks.named('compileJava') {
doLast {
execOperations.javaexec { spec ->
spec.classpath(rootProject.configurations.tools)
spec.main('org.jboss.bridger.Bridger')
spec.mainClass = 'org.jboss.bridger.Bridger'
spec.args(groovyCore.classesToBridge.asList().collect { it.absolutePath })
}
}
@@ -39,7 +39,7 @@ class CoreExtension {

void bridgedClasses(String... classes) {
classes.each {
def baseDir = sourceSets.getByName("main").java.outputDir
def baseDir = sourceSets.getByName("main").java.classesDirectory.get().asFile
classesToBridge.from(new File(baseDir, "/" + it.replace((char) '.', (char) '/') + ".class"))
}
}
@@ -43,6 +43,6 @@ dependencies {
tasks.register("console", JavaExec) {
jvmArgs += ["-Dgroovy.attach.groovydoc=true"]

main = 'groovy.console.ui.Console'
mainClass = 'groovy.console.ui.Console'
classpath = sourceSets.main.runtimeClasspath
}
@@ -34,7 +34,7 @@ dependencies {

compileJava {
doLast {
mkdir "$sourceSets.main.java.outputDir/META-INF"
mkdir "${sourceSets.main.java.classesDirectory.get().asFile}/META-INF"
}
}

0 comments on commit 8f5a00d

Please sign in to comment.