-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
105 lines (83 loc) · 1.89 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
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
}
}
apply plugin: 'forge'
apply plugin: 'maven'
repositories {
mavenLocal()
maven {
name = 'SevenCommons'
url = "http://maven.take-weiland.de"
}
}
dependencies {
compile 'de.take_weiland.mods.commons:SevenCommons:0.1-SNAPSHOT:deobf'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
version = "3.0a"
def ENV = System.getenv()
if (ENV.DRONE_BUILD_NUMBER) {
version += "." + ENV.DRONE_BUILD_NUMBER
} else {
version += ".local"
}
minecraft {
version = "1.7.10-10.13.4.1566-1.7.10"
runDir = "eclipse"
replaceIn "cameracraft/CameraCraft.java"
replace "@VERSION@", project.version
mappings = "stable_12"
}
group = "de.take_weiland.mods.cameracraft" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "CameraCraft"
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'deobf'
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'src'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}
tasks.build.dependsOn('sourceJar', 'deobfJar')
processResources {
from (sourceSets.main.resources.srcDirs)
}
artifacts {
archives deobfJar
archives sourceJar
archives jar
}
configurations {
deployerJars
}
repositories {
mavenCentral()
}
dependencies {
deployerJars "org.apache.maven.wagon:wagon-ftp:2.2"
}
if (ENV.CC_MAVEN_URL) {
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
repository(url: ENV.CC_MAVEN_URL) {
authentication(userName: ENV.CC_MAVEN_USER, password: ENV.CC_MAVEN_PASS)
}
}
}
}
idea.module.inheritOutputDirs = true