forked from MCTCP/TerrainControl
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
70 lines (56 loc) · 2.24 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
// Information for all projects
// The default tasks for all projects
defaultTasks 'clean', 'build', 'createReleaseJar', 'install'
allprojects
{
version = "2.8.5-SNAPSHOT"
group = "com.almuradev"
}
// Information for all subprojects
// (common, forge and bukkit, but not this file)
subprojects
{ task ->
task.plugins.withType(org.gradle.api.plugins.JavaBasePlugin)
{
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
// Generate Eclipse config files when using "gradle eclipse"
task.apply plugin: 'eclipse'
// Generate IntelliJ IDEA config files
task.apply plugin: 'idea'
}
// Generate a pom.xml, upload to local Maven repository
apply plugin: 'maven'
if(project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')) {
uploadArchives {
repositories {
mavenDeployer {
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots/') {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
pom.project {
name project.name
issueManagement {
system 'GitHub Issues'
url 'https://github.com/AlmuraDev/TerrainControl/issues'
}
licenses {
license {
name 'MIT License'
url 'https://opensource.org/licenses/MIT'
}
}
scm {
connection 'scm:[email protected]:AlmuraDev/TerrainControl.git'
developerConnection 'scm:[email protected]:AlmuraDev/TerrainControl.git'
url 'https://github.com/AlmuraDev/TerrainControl/'
}
}
}
}
}
}
}