Skip to content

Commit

Permalink
Update gradle build files for 9.0 compatibility and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammy1Am committed Jul 19, 2024
1 parent b1558e0 commit d5fcab0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
14 changes: 6 additions & 8 deletions Java/MoppyControlGUI/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ plugins {
id 'application'
}

mainClassName = 'com.moppy.control.MoppyControlGUI'
version = '2.1.0'
application {
mainClass.set('com.moppy.control.MoppyControlGUI')
}

version = '2.2.0'

jar {
manifest {
attributes ('Main-Class': mainClassName,
attributes ('Main-Class': application.mainClass,
'Implementation-Title': project.name,
'Implementation-Version': version)
}
Expand Down Expand Up @@ -40,8 +43,3 @@ dependencies {
// Use JUnit test framework
//testImplementation 'junit:junit:4.12'
}

application {
// Define the main class for the application.
mainClassName = 'com.moppy.control.MoppyControlGUI'
}
9 changes: 5 additions & 4 deletions Java/MoppyDeviceGUI/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
apply plugin: 'java'
apply plugin: 'application'

mainClassName = 'com.moppy.device.gui.MoppyDeviceGUI'
application {
mainClass.set('com.moppy.device.gui.MoppyDeviceGUI')
}

sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

// NetBeans will automatically add "run" and "debug" tasks relying on the
Expand All @@ -25,6 +26,6 @@ repositories {
}

dependencies {
compile project(':MoppyLib')
compile 'com.jsyn:jsyn:+' // For sound synthesizing
implementation project(':MoppyLib')
implementation 'com.jsyn:jsyn:+' // For sound synthesizing
}
2 changes: 1 addition & 1 deletion Java/MoppyLib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'java-library'
}

version = '2.1.0'
version = '2.2.0'

jar {
manifest {
Expand Down

0 comments on commit d5fcab0

Please sign in to comment.