Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
build.gradle for dev.jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamesuta committed Sep 12, 2016
1 parent 286774e commit a531cf7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
classpath 'com.matthewprenger:CurseGradle:1.0-SNAPSHOT'
}
}
Expand Down Expand Up @@ -92,13 +92,21 @@ sourceJar {
from sourceSets.api.allSource
}

task devJar(dependsOn: 'classes', type: Jar) {
from sourceSets.main.output
from sourceSets.api.output
classifier = 'dev'
manifest commonManifest
}

task apiJar(dependsOn: 'classes', type: Jar) {
from sourceSets.api.output
classifier = 'api'
manifest commonManifest
}

artifacts {
archives devJar
archives sourceJar
archives apiJar
}
Expand Down

0 comments on commit a531cf7

Please sign in to comment.