Skip to content

Commit

Permalink
build: Fixed main class name
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Ruaux committed May 26, 2023
1 parent bdb2540 commit e04073b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
1 change: 0 additions & 1 deletion core/riot-core/riot-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ dependencies {
}

compileJava {
options.release = 8
options.compilerArgs += ["-AprojectPath=${project.group}/${project.name}"]
}

Expand Down
17 changes: 5 additions & 12 deletions plugins/riot/riot.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,17 @@ application {

jar {
manifest {
attributes('Main-Class': 'com.redis.riot.cli.Main')
attributes([
'Main-Class': 'com.redis.riot.cli.Main',
'Automatic-Module-Name': project.findProperty('automatic.module.name')
])
}
}

startScripts {
classpath = files('$APP_HOME/lib/*')
}

jar {
manifest {
attributes('Main-Class': 'com.redis.riot.cli.Riot')
}
}

config {
info {
bytecodeVersion = 8
Expand Down Expand Up @@ -180,8 +177,4 @@ task copyGraalvmJavaSdk(type: Copy) {
into 'build/dependencies/graalvm'
}

assemble.dependsOn copyDependencies, copyGraalvmJavaSdk

compileJava {
options.release = 8
}
assemble.dependsOn copyDependencies, copyGraalvmJavaSdk

0 comments on commit e04073b

Please sign in to comment.