-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
140 lines (114 loc) · 3.16 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
buildscript {
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
plugins {
id "net.ltgt.apt" version "0.10"
id "com.github.johnrengelman.shadow" version "2.0.1"
id 'com.jfrog.bintray' version '1.3.1'
}
apply plugin: 'maven-publish'
apply plugin: 'net.minecraftforge.gradle.forge'
version = "2a9"
group = "com.gmail.socraticphoenix.randores"
archivesBaseName = "Randores"
sourceCompatibility = targetCompatibility = '1.8'
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
minecraft {
version = "1.12-14.21.1.2387"
mappings = "snapshot_20170624"
runDir = "run-client"
}
configurations {
library
compile.extendsFrom library
runtime.extendsFrom library
}
repositories {
mavenCentral()
maven {
name "jitpack.io"
url "https://jitpack.io"
}
maven {
url "http://tehnut.info/maven"
}
}
dependencies {
library "com.github.PlutoPowered:PIO:master-SNAPSHOT"
library "com.github.PlutoPowered:Parse:master-SNAPSHOT"
library "com.github.PlutoPowered:Collect:master-SNAPSHOT"
library "com.github.PlutoPowered:InverseY:master-SNAPSHOT"
library "com.github.PlutoPowered:Mirror:master-SNAPSHOT"
library "com.github.PlutoPowered:JLSC:master-SNAPSHOT"
shadow "mcp.mobius.waila:Hwyla:1.8.19-B33_1.12"
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version': project.version, 'mcversion': project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
//Tasks
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = "javadoc"
from javadoc.destinationDir
}
jar {
finalizedBy reobfJar
}
javadoc {
destinationDir = file("docs")
}
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
task devJar(type: ShadowJar) {
classifier = "dev"
from sourceSets.main.output
configurations = [project.configurations.library]
relocate "com.gmail.socraticphoenix.randores", "com.gmail.socraticphoenix.randores"
relocate "com.gmail.socraticphoenix", "com.gmail.socraticphoenix.randores.lib"
}
reobf {
shadowJar {
mappingType = "SEARGE"
}
}
shadowJar {
classifier = "shadow"
relocate "com.gmail.socraticphoenix.randores", "com.gmail.socraticphoenix.randores"
relocate "com.gmail.socraticphoenix", "com.gmail.socraticphoenix.randores.lib"
finalizedBy reobfShadowJar
}
//End Tasks
//Publishing
publishing {
publications {
maven (MavenPublication) {
artifact jar
artifact javadocJar {
classifier "javadoc"
}
artifact shadowJar {
classifier "shadow"
}
artifact devJar {
classifier "dev"
}
groupId "com.gmail.socraticphoenix"
artifactId "Randores"
version "$version"
}
}
}