-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
110 lines (92 loc) · 2.63 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
buildscript {
repositories {
mavenLocal()
maven {
url 'http://repo.quartzpowered.org/content/repositories/snapshots'
}
}
dependencies {
classpath 'org.quartzpowered:apigen:1.0-SNAPSHOT'
}
}
plugins {
id "com.github.hierynomus.license" version "0.11.0"
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'apigen'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
group = 'org.quartzpowered'
version = '1.0-SNAPSHOT'
defaultTasks 'licenseFormat', 'build'
license {
include '**/*.java'
strictCheck true
}
configurations {
provided
compile.extendsFrom(provided)
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'http://repo.quartzpowered.org/content/repositories/snapshots' }
}
dependencies {
provided 'org.projectlombok:lombok:1.16.4'
compile 'org.quartzpowered:apigen:1.0-SNAPSHOT:api'
compile 'io.netty:netty-all:5.0.0.Alpha2'
compile 'com.google.guava:guava:18.0'
compile 'com.google.inject:guice:4.0'
compile 'com.google.inject.extensions:guice-assistedinject:4.0'
compile 'com.google.code.gson:gson:2.3.1'
compile 'com.esotericsoftware:reflectasm:1.11.0'
compile 'net.engio:mbassador:1.2.1'
compile 'io.fastjson:boon:0.33'
compile 'ch.qos.logback:logback-classic:1.1.3'
compile 'org.fusesource.jansi:jansi:1.11'
compile 'org.codehaus.groovy:groovy-all:2.3.10'
compile 'com.flowpowered:flow-nbt:1.0.0'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task jarWithDependenciesJar(type: Jar, dependsOn: classes) {
classifier = 'jar-with-dependencies'
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
with jar
manifest {
attributes("Main-Class" : "org.quartzpowered.server.main.Main")
}
}
artifacts {
archives sourcesJar, javadocJar, jarWithDependenciesJar
}
publishing {
repositories {
maven {
url 'http://repo.quartzpowered.org/content/repositories/' + (project.version.endsWith('-SNAPSHOT') ? 'snapshots' : 'releases')
credentials {
username 'deployment'
password System.env['maven_pass']
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
artifact jarWithDependenciesJar
}
}
}