Log version

dev/0.11
modmuss50 2018-11-03 18:03:43 +00:00
parent 0770c57d6d
commit 3a6a4f4056
2 changed files with 14 additions and 1 deletions

View File

@ -11,7 +11,15 @@ targetCompatibility = 1.8
group = 'net.fabricmc'
archivesBaseName = project.name
version = '0.0.12-SNAPSHOT'
version = '0.0.13-SNAPSHOT'
def build = "local"
def ENV = System.getenv()
if (ENV.BUILD_NUMBER) {
build = "jenkins #${ENV.BUILD_NUMBER}"
}
// Remove the gradleApi so it isn't merged into the jar file.
configurations.compile.dependencies.remove dependencies.gradleApi()
@ -66,6 +74,9 @@ jar {
exclude 'META-INF/*'
exclude 'META-INF'
}
manifest {
attributes 'Implementation-Version': version + " Build(" + build + ")"
}
}
apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/license.gradle'

View File

@ -60,6 +60,8 @@ public class AbstractPlugin implements Plugin<Project> {
public void apply(Project target) {
this.project = target;
project.getLogger().lifecycle("Fabric Loom: " + AbstractPlugin.class.getPackage().getImplementationVersion());
// Apply default plugins
project.apply(ImmutableMap.of("plugin", "java"));
project.apply(ImmutableMap.of("plugin", "eclipse"));