openrocket/build.gradle

65 lines
1.4 KiB
Groovy
Raw Normal View History

2023-04-18 21:48:26 -05:00
//// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
2024-02-21 15:41:22 +01:00
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'java'
id 'checkstyle'
2023-04-18 21:48:26 -05:00
}
2024-02-22 19:49:55 +01:00
java {
modularity.inferModulePath = true
}
2023-04-18 21:48:26 -05:00
Properties props = new Properties()
try {
props.load(file('./core/src/main/resources/build.properties').newDataInputStream())
} catch (Exception ex) {
throw new Exception("Missing build.properties. file: " + ex.getMessage())
}
allprojects {
2024-02-22 19:49:55 +01:00
group 'info.openrocket'
2023-04-18 21:48:26 -05:00
version = props['build.version']
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
2024-02-22 19:49:55 +01:00
maven { url "https://jogamp.org/deployment/maven/" }
2023-04-18 21:48:26 -05:00
}
}
dependencies {
implementation project(':core')
implementation project(':swing')
}
//tasks.register('serializeEngines') {
// dependsOn ':core:serializeEngines'
//}
jar {
archiveBaseName.set('openrocket')
manifest {
attributes (
2024-02-22 19:49:55 +01:00
'Main-Class': 'info.openrocket.swing.startup.OpenRocket',
2023-04-18 21:48:26 -05:00
'SplashScreen-Image': 'pix/splashscreen.png'
)
}
}
shadowJar {
archiveBaseName.set('openrocket')
archiveClassifier.set(null)
}
//shadowJar.dependsOn([':core:serializeEngines'])
// Packages the application for distribution.
2023-05-06 11:18:35 -05:00
tasks.register('dist') {
2023-04-18 21:48:26 -05:00
group = 'openrocket'
dependsOn 'shadowJar'
doLast {
println "Completed the deployable jar in './build/libs"
}
}