java
application
eclipse
+ `check-lib-versions`
}
-version = "0.7.4"
+version = "0.8.3"
java {
sourceCompatibility = JavaVersion.VERSION_11
dependencies {
implementation("org.bouncycastle:bcprov-jdk15on:1.68")
- implementation("net.sourceforge.argparse4j:argparse4j:0.8.1")
- implementation("com.github.hypfvieh:dbus-java:3.2.4")
+ implementation("net.sourceforge.argparse4j:argparse4j:0.9.0")
+ implementation("com.github.hypfvieh:dbus-java:3.3.0")
implementation("org.slf4j:slf4j-simple:1.7.30")
implementation(project(":lib"))
}
}
}
+
+tasks.withType<AbstractArchiveTask>().configureEach {
+ isPreserveFileTimestamps = false
+ isReproducibleFileOrder = true
+}
+
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
}
}
-// Find any 3rd party libraries which have released new versions
-// to the central Maven repo since we last upgraded.
-val checkLibVersions by tasks.registering {
- doLast {
- val checked = kotlin.collections.HashSet<Dependency>()
- allprojects {
- configurations.forEach { configuration ->
- configuration.allDependencies.forEach { dependency ->
- val version = dependency.version
- if (!checked.contains(dependency)) {
- val group = dependency.group
- val path = group?.replace(".", "/") ?: ""
- val name = dependency.name
- val metaDataUrl = "https://repo1.maven.org/maven2/$path/$name/maven-metadata.xml"
- try {
- val url = org.codehaus.groovy.runtime.ResourceGroovyMethods.toURL(metaDataUrl)
- val metaDataText = org.codehaus.groovy.runtime.ResourceGroovyMethods.getText(url)
- val metadata = groovy.util.XmlSlurper().parseText(metaDataText)
- val newest = (metadata.getProperty("versioning") as groovy.util.slurpersupport.GPathResult).getProperty("latest")
- if (version != newest.toString()) {
- println("UPGRADE {\"group\": \"$group\", \"name\": \"$name\", \"current\": \"$version\", \"latest\": \"$newest\"}")
- }
- } catch (e: Throwable) {
- logger.debug("Unable to download or parse $metaDataUrl: $e.message")
- }
- checked.add(dependency)
- }
- }
- }
- }
- }
-}
-
val assembleNativeImage by tasks.registering {
dependsOn("assemble")