mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-23 00:21:43 +01:00
Fixed some gradle issues
This commit is contained in:
parent
2877fdc5ca
commit
a1168ba749
@ -18,25 +18,27 @@ plugins {
|
|||||||
|
|
||||||
apply plugin: 'nebula-aggregate-javadocs'
|
apply plugin: 'nebula-aggregate-javadocs'
|
||||||
|
|
||||||
|
def determineBuildVersion = {
|
||||||
|
def buildInfo = new ByteArrayOutputStream()
|
||||||
|
exec {
|
||||||
|
commandLine 'git', 'rev-list', '--count', 'HEAD'
|
||||||
|
standardOutput = buildInfo
|
||||||
|
}
|
||||||
|
// Magic number: git rev-list --count cdb13e3b663b18e3938ad5efc60d165fa9301f6e
|
||||||
|
return Integer.parseInt(buildInfo.toString().replaceAll("[^0-9]", "")) - 3529
|
||||||
|
}
|
||||||
|
def buildVersion = determineBuildVersion()
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
wrapper.gradleVersion = "5.5.1"
|
wrapper.gradleVersion = "5.5.1"
|
||||||
|
|
||||||
group "com.djrapitops"
|
group "com.djrapitops"
|
||||||
version "5.0-SNAPSHOT"
|
version "5.0-SNAPSHOT"
|
||||||
|
|
||||||
def determineBuildVersion = {
|
|
||||||
def buildInfo = new ByteArrayOutputStream()
|
|
||||||
exec {
|
|
||||||
commandLine 'git', 'rev-list', '--count', 'HEAD', '^cdb13e3b663b18e3938ad5efc60d165fa9301f6e'
|
|
||||||
standardOutput = buildInfo
|
|
||||||
}
|
|
||||||
return buildInfo.toString().replaceAll("[^0-9]", "")
|
|
||||||
}
|
|
||||||
|
|
||||||
ext.majorVersion = '5'
|
ext.majorVersion = '5'
|
||||||
ext.minorVersion = '0'
|
ext.minorVersion = '0'
|
||||||
ext.buildVersion = determineBuildVersion()
|
ext.buildVersion = buildVersion
|
||||||
ext.fullVersion = "$majorVersion.$minorVersion build $buildVersion"
|
ext.fullVersion = project.ext.majorVersion + '.' + project.ext.minorVersion + ' build ' + project.ext.buildVersion
|
||||||
|
|
||||||
test {
|
test {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
@ -115,6 +117,9 @@ subprojects {
|
|||||||
maven { // Velocity Repository
|
maven { // Velocity Repository
|
||||||
url = "https://repo.velocitypowered.com/snapshots/"
|
url = "https://repo.velocitypowered.com/snapshots/"
|
||||||
}
|
}
|
||||||
|
maven { // Nukkit Repository
|
||||||
|
url = "http://repo.nukkitx.com/main"
|
||||||
|
}
|
||||||
maven { // bStats Repository
|
maven { // bStats Repository
|
||||||
url = "https://repo.codemc.org/repository/maven-public"
|
url = "https://repo.codemc.org/repository/maven-public"
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,3 @@
|
|||||||
repositories {
|
|
||||||
maven { // Nukkit Repository
|
|
||||||
url = "http://repo.nukkitx.com/main"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(path: ":common", configuration: 'shadow')
|
compile project(path: ":common", configuration: 'shadow')
|
||||||
compileOnly project(":api")
|
compileOnly project(":api")
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
|
|
||||||
blossom {
|
blossom {
|
||||||
replaceTokenIn('src/main/java/com/djrapitops/plan/PlanSponge.java')
|
replaceTokenIn('src/main/java/com/djrapitops/plan/PlanSponge.java')
|
||||||
replaceToken('@version@', "$fullVersion")
|
replaceToken('@version@', '' + project.ext.fullVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
Loading…
Reference in New Issue
Block a user