Skip to content

Commit

Permalink
build: update to Gradle 7.6.4 (prev. 5.6.4), multiple build updates a…
Browse files Browse the repository at this point in the history
…nd optimisations (museumsvictoria#313)

* Node.js to 16.x (supports ARM/Silicon builds)
  • Loading branch information
scroix authored Apr 30, 2024
1 parent ff08b94 commit c5d34e5
Show file tree
Hide file tree
Showing 8 changed files with 383 additions and 284 deletions.
43 changes: 41 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,47 @@
import org.joda.time.DateTime

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'joda-time:joda-time:2.10.10'
}
}

ext {
getGitInfo = {
return [
branch : 'git rev-parse --abbrev-ref HEAD'.execute().text.trim(),
id : 'git rev-parse HEAD'.execute().text.trim(),
rev : 'git rev-list --count HEAD'.execute().text.trim(),
origin : 'git config --get remote.origin.url'.execute().text.trim()
]
}

gitInfo = getGitInfo()
buildSummary = gitInfo.id
hostname = InetAddress.getLocalHost().getHostName().toUpperCase()
now = DateTime.now().toString()
rev = gitInfo.rev.replaceAll(/[^a-zA-Z0-9]/, '')

branch = gitInfo.branch
if (branch == 'master') {
branch = 'release'
} else if (branch.contains('/')) {
branch = branch.substring(branch.indexOf('/') + 1)
}

baseVersion = '2.2.1'
versionIdentifier = "${baseVersion}-${branch}_r${rev}"
println "versionIdentifier: ${versionIdentifier}"
}

subprojects {
apply plugin: 'java'
group = 'org.nodel'
version = '2.2.1'
version = rootProject.ext.baseVersion
repositories {
mavenCentral()
}
}
}
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit c5d34e5

Please sign in to comment.