Skip to content
Permalink
Browse files

Set version to 1.12 and updated scripts

  • Loading branch information...
DarkGuardsman committed Jul 12, 2017
1 parent 6c08ab4 commit b1770603d969ae56c1a0a247e7495a11d0caaed7
Showing with 38 additions and 22 deletions.
  1. +1 −1 AIImprovements.txt
  2. +36 −20 build.gradle
  3. +1 −1 gradle.properties
@@ -1 +1 @@
1.11.2-0.0.1b20170712135102
1.12-0.0.1b20170712142947
@@ -13,22 +13,33 @@ buildscript {
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
classpath 'org.ajoberstar:gradle-git:0.10.1'
}
}

plugins {
id 'com.matthewprenger.cursegradle' version '1.0.9'
id 'net.saliman.cobertura' version '2.2.5'
id 'com.github.kt3k.coveralls' version '2.0.1'
id "se.bjurr.gitchangelog.git-changelog-gradle-plugin" version "1.45"
}

apply from: 'https://raw.githubusercontent.com/BuiltBrokenModding/BuiltBrokenScripts/1.11.2/index/index.gradle'
apply from: 'https://raw.githubusercontent.com/BuiltBrokenModding/BuiltBrokenScripts/1.12/index/index.gradle'
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'jacoco'

def currentJvm = org.gradle.internal.jvm.Jvm.current()
println "Current Java version = " + currentJvm

println archivesBaseName

targetCompatibility = '1.8'
sourceCompatibility = '1.8'

def currentJvm = org.gradle.internal.jvm.Jvm.current()
println "Current Java version = " + currentJvm

dependencies
{
testCompile 'junit:junit:4.11'
}

jar {
manifest.mainAttributes(
@@ -39,26 +50,31 @@ jar {
"FMLAT": "AI_at.cfg",
)
}
/*
minecraft {
replace "required-after:VoltzEngine", "required-after:VoltzEngine@[$voltz_engine_version,)"
}
*/

dependencies
{
//compile "dev.builtbroken.voltzengine:VoltzEngine:1.7.10-$voltz_engine_version+:deobf-dev"
}

def getDate() {
def date = new Date()
def formattedDate = date.format('yyyyMMddHHmmss')
return formattedDate
}

jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}

task makeChangelog(type: se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask) {
filePath = "changelog.html"
untaggedName = "Current release ${project.version}"
fromCommit = startGitRev
toRef = "HEAD"
templateContent = """
{{#tags}}
<h1> Highly untested and may break world</h1>
<h3>{{name}}</h3>
<ul>
{{#commits}}
<li> <a href="https://github.com/BuiltBrokenModding/AI-Improvements/commit/{{hash}}" target=_blank> {{{message}}}</a>
</li>
{{/commits}}
</ul>
{{/tags}}
"""
}

tasks.build.dependsOn makeChangelog
@@ -4,4 +4,4 @@ version_revis=1
archivebase=AIImprovements
groupid=aiimprovements
org=builtbroken
voltz_engine_version=0.8.0
startGitRev=6c08ab

0 comments on commit b177060

Please sign in to comment.
You can’t perform that action at this time.