forked from unidev-platform/java-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
90 lines (74 loc) · 2.17 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
buildscript {
repositories {
jcenter()
}
}
plugins {
id 'io.franzbecker.gradle-lombok' version '1.8'
}
project.ext.springVersion="5.1.1.RELEASE"
project.ext.platformVersion = "3.2.11-SNAPSHOT"
allprojects {
}
subprojects {
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = 10
targetCompatibility = 10
group = 'com.unidev.platform'
version = "$project.platformVersion"
if (!project.hasProperty('unidevEnv')) { //gradlew -PunidevEnv build
repositories {
mavenCentral()
jcenter()
}
} else {
println "Unidev Envirnoment build"
// http://dev.local/gradle/uploadArchivesG5.groovy
apply from: 'http://dev.local/gradle/defaultRepositories.groovy'
apply from: 'http://dev.local/gradle/uploadArchives.groovy'
apply from: 'http://dev.local/gradle/javadoc.groovy'
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
}
lombok {
version = '1.18.8'
sha256 = ""
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.21'
compile 'org.slf4j:slf4j-simple:1.7.21'
compileOnly 'org.projectlombok:lombok:1.18.8'
annotationProcessor 'org.projectlombok:lombok:1.18.8'
testCompile 'org.mockito:mockito-all:1.10.19'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'org.assertj:assertj-core:3.9.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
tasks.withType(JavaCompile) {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
test {
useJUnitPlatform()
}
}