Log version
parent
0770c57d6d
commit
3a6a4f4056
13
build.gradle
13
build.gradle
|
@ -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'
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue