-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (62 loc) · 1.87 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
plugins {
id "com.gradle.plugin-publish" version "0.9.2"
id 'nebula.provided-base' version '3.0.3'
id "me.tatarka.retrolambda" version "3.2.4"
id 'maven'
}
defaultTasks 'build'
group="org.minimallycorrect.modpatcher"
version = "${buildVersion}-SNAPSHOT"
repositories {
jcenter()
maven { url = 'https://repo.nallar.me/' }
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
configurations.all { resolutionStrategy.cacheChangingModulesFor 30, 'seconds' }
dependencies {
provided gradleApi()
compileOnly "org.projectlombok:lombok:1.16.16"
compileOnly "net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT"
compile group: 'org.minimallycorrect.mixin', name: "Mixin", version: "1.0-SNAPSHOT", changing: true
compile files('libs/lzma-0.0.1.jar')
}
// Source compiler configuration
tasks.withType(JavaCompile) {
sourceCompatibility = 8
targetCompatibility = 8
options.with {
deprecation = true
encoding = 'UTF-8'
compilerArgs << "-Xlint:all" << "-Xlint:-path" << "-Xlint:-processing"
}
}
ext.buildNumber = System.getenv("BUILD_NUMBER") ?: 0
ext.ciSystem = System.getenv("JENKINS_URL") ? 'Jenkins' : 'unknown'
ext.commit = System.getenv("GIT_COMMIT") ?: 'unknown'
jar.manifest.mainAttributes (
"Built-By": System.properties['user.name'],
"Created-By": System.properties['java.vm.version'] + " (" + System.properties['java.vm.vendor'] + ")",
"Implementation-Title": name,
"Implementation-Version": version + "+" + ciSystem + "-b" + buildNumber + ".git-" + commit,
)
jar {
baseName = project.name
}
artifacts {
archives jar
}
pluginBundle {
website = 'http://www.gradle.org/'
vcsUrl = 'https://github.com/MinimallyCorrect/ModPatcherGradle'
description = 'Gradle plugin for ModPatcher Core Mods'
tags = ['minecraft']
plugins << {
modpatcher {
id = 'org.minimallycorrect.modpatcher.ModPatcherGradle'
displayName = 'ModPatcher Gradle Plugin'
}
}
}