forked from jimmytheneutrino/petit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
89 lines (70 loc) · 2.26 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
def script(s) {
return [from: project.rootDir.path + "/gradle-include/" + s + ".gradle"]
}
subprojects {
apply plugin: 'java'
apply plugin: 'osgi'
apply plugin: 'license'
apply script('jacoco')
apply script('maven')
task sourcesJar(type: Jar, dependsOn: classes) {
classifier 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
jar {
manifest {
attributes 'Provider': 'Nortal AS'
instruction '-nouses', 'true'
instruction 'Bundle-Vendor', 'Nortal AS'
}
}
license {
header rootProject.file('LICENSE_HEADER')
strictCheck true
}
group = 'com.nortal'
version = '1.1.1'
sourceCompatibility = 1.7
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
repositories {
mavenCentral()
}
configurations { deployerJars }
ext {
springVersion = '4.2.5.RELEASE'
testRuntimeSpringVersion = '4.2.5.RELEASE'
commonsLangVersion = '3.3.2'
guavaVersion = '18.0'
}
dependencies {
deployerJars 'org.apache.maven.wagon:wagon-ssh:2.2'
testCompile 'org.springframework:spring-test:'+springVersion
testCompile 'org.springframework:spring-context:'+testRuntimeSpringVersion
testCompile 'org.springframework:spring-beans:'+testRuntimeSpringVersion
testCompile 'org.springframework:spring-expression:'+testRuntimeSpringVersion
testCompile group: 'junit', name: 'junit', version:'4.12'
testCompile group: 'org.springframework', name: 'spring-test', version: testRuntimeSpringVersion
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version:'1.3'
testCompile group: 'org.mockito', name: 'mockito-core', version:'1.10.19'
}
}
//jar.doFirst {
// ant.replace(file: project.rootDir "sonar-project.properties", token: "sonar.projectVersion", value: "2.0")
//}
apply script('artifactory')
apply script('depgraph')
apply script('osgi')
task wrapper(type: Wrapper) { gradleVersion = '2.11' }
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.7.0'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.0.0"
}
}