This repository has been archived by the owner on Oct 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
98 lines (83 loc) · 2.41 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'eclipse'
defaultTasks 'clean', 'build'
group = 'org.neptunepowered'
version = '1.0-SNAPSHOT'
archivesBaseName = project.name.toLowerCase()
sourceCompatibility = '1.6'
targetCompatibility = '1.6'
repositories {
mavenCentral()
maven {
name = 'Visual Illusions Repository'
url = 'http://repo.visualillusionsent.net/repository/public/'
}
maven {
url "https://libraries.minecraft.net"
}
maven {
name = 'mcstats.org releases'
url = 'http://repo.mcstats.org/content/repositories/releases/'
}
maven {
name = 'mcstats.org snapshots'
url = 'http://repo.mcstats.org/content/repositories/snapshots/'
}
maven {
url 'http://repo.spongepowered.org/maven'
}
}
dependencies {
compile 'net.canarymod:CanaryLib:1.2.1-SNAPSHOT'
}
javadoc {
options.encoding = 'UTF-8'
options.charSet = 'UTF-8'
}
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourceJar
archives javadocJar
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: System.getenv().DEPLOY_ROOT + "/maven_repo")
pom {
groupId = project.group
artifactId = project.archivesBaseName
version = project.version
project {
name project.archivesBaseName
description "Extensions to Canarylib"
packaging 'jar'
url "http://www.neptunepowered.org/"
scm {
url "https://github.com/NeptunePowered/NeptuneLib"
connection "scm:git:https://github.com/NeptunePowered/NeptuneLib.git"
developerConnection "scm:git:[email protected]:NeptunePowered/NeptuneLib.git"
}
licenses {
license {
name 'MIT License'
url 'http://opensource.org/licenses/MIT'
distribution 'repo'
}
}
}
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}