-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
102 lines (90 loc) · 2.66 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'maven'
apply plugin: 'maven-publish'
//Use java 6
sourceCompatibility = 1.6
targetCompatibility = 1.6
version = "0.0"
def ENV = System.getenv()
if (ENV.BUILD_NUMBER) {
version = version + "." + "${System.getenv().BUILD_NUMBER}"
}
minecraft {
version = "1.8.9-11.15.0.1709"
mappings = 'snapshot_20160119'
runDir = "run"
}
group = 'JSON-Destroyer'
dependencies {
//Nope
}
//I keep this becuase it will make shading easy
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'dev'
}
jar {
exclude "**/*.psd"
classifier = 'universal'
}
artifacts {
archives deobfJar
}
build.dependsOn deobfJar
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file:///var/www/maven/")
pom {
groupId = "JSON-Destroyer"
version = project.version
artifactId = project.archivesBaseName
project {
name project.archivesBaseName
packaging 'jar'
description 'JSON-Destoyer'
url 'https://github.com/modmuss50/JSON-Destroyer'
scm {
url 'https://github.com/modmuss50/JSON-Destroyer'
connection 'scm:git:[email protected]:modmuss50/JSON-Destroyer.git'
developerConnection 'scm:git:[email protected]:modmuss50/JSON-Destroyer.git'
}
issueManagement {
system 'github'
url 'https://github.com/modmuss50/JSON-Destroyer/issues'
}
licenses {
license {
name 'License'
url 'https://raw.githubusercontent.com/modmuss50/JSON-Destroyer/LICENSE.md'
distribution 'repo'
}
}
developers {
developer {
id 'modmuss50'
name 'modmuss50'
roles { role 'developer' }
}
}
}
}
}
}
}