Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit b0c3102

Browse files
committed
Switched version system
1 parent 2568b18 commit b0c3102

2 files changed

Lines changed: 7 additions & 13 deletions

File tree

build.gradle

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@ plugins {
33
id 'org.ajoberstar.grgit' version '5.2.1'
44
}
55

6+
boolean isSnapshot = System.getenv("RELEASE") != 'true';
7+
68
allprojects {
79
apply plugin: 'idea'
810
apply plugin: 'eclipse'
911

1012
group = "${project_group}"
11-
version = "${project_version}"
13+
try {
14+
version = isSnapshot ? grgit.head().id.subSequence(0, 5) : grgit.tag.list().get(0).getName();
15+
} catch (IndexOutOfBoundsException e) {
16+
version = "undefined"
17+
}
1218

1319
eclipse {
1420
classpath {
@@ -46,8 +52,6 @@ subprojects {
4652
apply plugin: 'maven-publish'
4753

4854
publishing {
49-
boolean isSnapshot = System.getenv("RELEASE") != 'true';
50-
5155
repositories {
5256
maven {
5357
name 'AtlasWorld-Repo'
@@ -70,21 +74,12 @@ subprojects {
7074
AtlasCommon(MavenPublication) {
7175
from components.java
7276

73-
def snapshot = "${project_version}-${grgit.head().id.subSequence(0, 5)}"
74-
75-
try {
76-
version = isSnapshot ? snapshot : grgit.tag.list().get(0).getName();
77-
} catch (IndexOutOfBoundsException e) {
78-
version = "undefined"
79-
}
80-
8177
pom {
8278
name = project.name
8379
description = project.description
8480
licenses {
8581
license {
8682
name = 'GNU-GPL-v2.0'
87-
8883
url = 'https://github.com/AtlasWorldMC/EventFlow/blob/master/LICENSE'
8984
}
9085
}

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ org.gradle.daemon = true
77
name = EventFlow
88
description = AtlasWorld's Universal Event API
99

10-
project_version = 1.0.1
1110
project_group = fr.atlasworld.event
1211

1312
java_version = 21

0 commit comments

Comments
 (0)