Skip to content

Commit

Permalink
add preliminary test-release
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowmage45 committed Jun 16, 2014
1 parent e37a3cb commit 2bf98d2
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
36 changes: 30 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,46 @@ dependencies {
}
}

//task sourceJar(type: Jar) {
// from sourceSets.main.allSource
// classifier = 'sources'
//}
//
//task deobfJar(type: Jar) {
// from sourceSets.main.output
// classifier = 'dev'
//}
//
//task coreJar(type: Jar) {
// from sourceSets.main.output
// include 'core/'
// classifier = 'core'
//}

//jar.dependsOn sourceJar, deobfJar, coreJar

//artifacts {
// // the default jar is already here by default
// archives sourceJar
// archives deobfJar
//}

task updateVersion(type:Copy){
ant.propertyfile(file: versionFile)
{
ant.propertyfile(file: versionFile) {
entry(key: 'build', type: 'int', operation: '+', value: 001)
}
from(sourceSets.main.java.srcDirs)
{
from(sourceSets.main.java.srcDirs){
exclude 'mcmod.info'
}
into 'build/sources/java'
filter(ReplaceTokens, tokens: [VERSION: project.version])
}


compileJava.dependsOn updateVersion


processResources
{
processResources{
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
Expand All @@ -76,3 +97,6 @@ processResources
exclude 'mcmod.info'
}
}



2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Mon, 16 Jun 2014 12:42:38 -0600
#Mon, 16 Jun 2014 13:13:50 -0600
major=2
minor=0
build=33
Expand Down
Binary file not shown.

0 comments on commit 2bf98d2

Please sign in to comment.