This repository was archived by the owner on Nov 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
68allprojects {
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 }
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ org.gradle.daemon = true
77name = EventFlow
88description = AtlasWorld's Universal Event API
99
10- project_version = 1.0.1
1110project_group = fr.atlasworld.event
1211
1312java_version = 21
You can’t perform that action at this time.
0 commit comments