Skip to content

Commit f6c58fb

Browse files
committed
Hypertale 1.3.2
1 parent e931892 commit f6c58fb

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ final File javaDocSourceRoot = new File(rootDir, "dev" + File.separator +
3333
final File javadocExtraCSS = new File(javaDocSourceRoot,
3434
"resource-files" + File.separator + "hypertale-javadoc.css")
3535

36+
final File localPropertiesFile = new File(rootProject.rootDir, "local.properties")
37+
final Properties localProperties = new Properties()
38+
if (localPropertiesFile.isFile()) {
39+
try (FileInputStream fileInputStream = new FileInputStream(localPropertiesFile)) {
40+
localProperties.load(new BufferedInputStream(fileInputStream))
41+
}
42+
}
43+
boolean nonRelease = "release" != localProperties.getOrDefault("build.patchline", "release")
44+
3645
tasks.register('publishToMavenLocal', Task).configure {
3746
shouldRunAfter("build")
3847
}
@@ -218,6 +227,12 @@ tasks.register("aggregateJavadocs", Javadoc) {
218227
options.memberLevel = JavadocMemberLevel.PUBLIC
219228
options.links += "https://asm.ow2.io/javadoc/"
220229

230+
doFirst {
231+
if (nonRelease) {
232+
throw new RuntimeException("Cannot make a release while targetting a non-release hytale branch")
233+
}
234+
}
235+
221236
doLast {
222237
copy {
223238
from javaDocSourceRoot

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx1024m -XX:-UseGCOverheadLimit -Dfile.encoding=UTF-8
55
org.gradle.java.installations.auto-download=true
66
# Hypertale properties
77
hypertale.library.version=1.0.0
8-
hypertale.version=1.3.1
8+
hypertale.version=1.3.2
99
hypertale.init=1
1010

1111
# https://plugins.gradle.org/plugin/net.ltgt.errorprone

0 commit comments

Comments
 (0)