forked from MengZhang/survey-divider
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
57 lines (51 loc) · 1.13 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
buildscript {
repositories {
jcenter()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
classpath 'com.scuilion.syntastic:gradle-syntastic-plugin:0.3.6-java7'
}
}
allprojects {
apply plugin: 'com.scuilion.syntastic'
repositories {
jcenter()
}
}
subprojects {
apply plugin: 'java'
group = 'org.agmip.lib'
version = '1.0.0-SNAPSHOT'
}
apply plugin: 'maven-publish'
project(':example') {
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
dependencies {
compile project(':api')
}
mainClassName = "org.agmip.examples.data.cropmodel.partition.Main"
}
project(':api') {
dependencies {
compile 'com.fasterxml.jackson.core:jackson-core:2.7.5'
compile 'ch.qos.logback:logback-classic:1.1.7'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'org.agmip.lib'
artifactId 'partitioner'
version '1.0.0-SNAPSHOT'
from components.java
}
}
}
}
task wrapper(type: Wrapper) {
jarFile = '.gradlew/gradle-wrapper.jar'
}