|
@@ -21,8 +21,6 @@ apply plugin: 'maven-publish'
|
|
|
|
|
|
apply from: 'https://raw.githubusercontent.com/MinecraftModDevelopment/Gradle-Collection/22e7d543a18cd30675277fbfa3669e3d9e206010/generic/secrets.gradle'
|
|
|
|
|
|
-import groovy.json.JsonOutput
|
|
|
-
|
|
|
if (project.hasProperty('secretFile')) {
|
|
|
loadSecrets(new File((String) findProperty('secretFile')))
|
|
|
}
|
|
@@ -43,7 +41,7 @@ repositories {
|
|
|
}
|
|
|
|
|
|
minecraft {
|
|
|
- mappings channel: 'snapshot', version: '20200820-1.16.1'
|
|
|
+ mappings channel: 'snapshot', version: '20201028-1.16.3'
|
|
|
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
|
|
|
|
|
runs {
|
|
@@ -72,33 +70,8 @@ minecraft {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-task genGitChangelog() {
|
|
|
- def stdout = new ByteArrayOutputStream()
|
|
|
- // first commit to check from, in our case the first commit of the branch
|
|
|
- String firstCommit = "efff217f353e51ce43751caf94b1924818b710e8";
|
|
|
- String repoLink = "https://github.com/jaredlll08/Controlling/commit/"
|
|
|
- // was having issues with grep and spaces in the regex
|
|
|
- exec {
|
|
|
- commandLine 'git', 'log', '-i', '--grep=version\\spush', '--grep=open\\sbeta\\sspecific\\scode', '--pretty=tformat:%H', '--date=local', firstCommit + '..@{0}'
|
|
|
- standardOutput = stdout
|
|
|
- }
|
|
|
- if (stdout.toString().trim().indexOf("\n") >= 0) {
|
|
|
- firstCommit = stdout.toString().split("\n")[0].trim();
|
|
|
- }
|
|
|
- System.out.println("Last version hash: \"" + firstCommit + "\"");
|
|
|
- stdout = new ByteArrayOutputStream()
|
|
|
- def test = exec {
|
|
|
- commandLine 'git', 'log', '--pretty=tformat:- [%s](' + repoLink + '%H) - %aN - %cd', '--max-parents=1', '--date=local', firstCommit + "..@"
|
|
|
- standardOutput = stdout
|
|
|
- }
|
|
|
- File file = new File("changelog.md")
|
|
|
- file.write("### Current version: " + project.version)
|
|
|
- file.append("\n" + stdout.toString())
|
|
|
- System.out.println("Changelog generated!")
|
|
|
-}
|
|
|
-
|
|
|
dependencies {
|
|
|
- minecraft 'net.minecraftforge:forge:1.16.4-35.0.15'
|
|
|
+ minecraft 'net.minecraftforge:forge:1.16.5-36.0.0'
|
|
|
}
|
|
|
|
|
|
jar {
|
|
@@ -209,7 +182,7 @@ task updateVersionTracker {
|
|
|
def body = [
|
|
|
'author' : "${project.findProperty('versionTrackerAuthor')}",
|
|
|
'projectName' : "controlling",
|
|
|
- 'gameVersion' : "1.16.4",
|
|
|
+ 'gameVersion' : "1.16.5",
|
|
|
'projectVersion': "${version}",
|
|
|
'homepage' : "${project.findProperty('versionTrackerHomepage')}",
|
|
|
'uid' : "${project.findProperty('versionTrackerKey')}"
|
|
@@ -228,4 +201,29 @@ task updateVersionTracker {
|
|
|
println "VersionCheck Response: ${req.getInputStream().getText()}"
|
|
|
}
|
|
|
|
|
|
+}
|
|
|
+
|
|
|
+task genGitChangelog() {
|
|
|
+ def stdout = new ByteArrayOutputStream()
|
|
|
+ // first commit to check from, in our case the first commit of the branch
|
|
|
+ String firstCommit = "efff217f353e51ce43751caf94b1924818b710e8";
|
|
|
+ String repoLink = "https://github.com/jaredlll08/Controlling/commit/"
|
|
|
+ // was having issues with grep and spaces in the regex
|
|
|
+ exec {
|
|
|
+ commandLine 'git', 'log', '-i', '--grep=version\\spush', '--grep=open\\sbeta\\sspecific\\scode', '--pretty=tformat:%H', '--date=local', firstCommit + '..@{0}'
|
|
|
+ standardOutput = stdout
|
|
|
+ }
|
|
|
+ if (stdout.toString().trim().indexOf("\n") >= 0) {
|
|
|
+ firstCommit = stdout.toString().split("\n")[0].trim();
|
|
|
+ }
|
|
|
+ System.out.println("Last version hash: \"" + firstCommit + "\"");
|
|
|
+ stdout = new ByteArrayOutputStream()
|
|
|
+ def test = exec {
|
|
|
+ commandLine 'git', 'log', '--pretty=tformat:- [%s](' + repoLink + '%H) - %aN - %cd', '--max-parents=1', '--date=local', firstCommit + "..@"
|
|
|
+ standardOutput = stdout
|
|
|
+ }
|
|
|
+ File file = new File("changelog.md")
|
|
|
+ file.write("### Current version: " + project.version)
|
|
|
+ file.append("\n" + stdout.toString())
|
|
|
+ System.out.println("Changelog generated!")
|
|
|
}
|