-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
129 lines (103 loc) · 2.97 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
plugins {
id "org.sonarqube" version "2.6"
id "com.jfrog.bintray" version "1.7.3"
id "maven-publish"
id "java"
}
static String buildVersion(String baseVersion) {
def snapshotSuffix = System.getProperty("build.release") ? "" : "-SNAPSHOT"
"${baseVersion}${snapshotSuffix}"
}
def currentVersion = buildVersion '1.0'
allprojects {
group 'fr.antoineaube'
version currentVersion
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
dependencies {
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.0'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.0'
testImplementation(
'org.junit.jupiter:junit-jupiter-api:5.1.0'
)
testRuntimeOnly(
'org.junit.jupiter:junit-jupiter-engine:5.1.0'
)
}
test {
useJUnitPlatform()
}
}
sonarqube {
properties {
property "sonar.projectName", "Chameleon"
property "sonar.projectKey", "fr.antoineaube.chameleon"
}
}
bintray {
user = System.getProperty('bintray.user')
key = System.getProperty('bintray.key')
publications = ['core', 'gui', 'patterns', 'pictures']
pkg {
repo = 'awesome-projects'
name = 'Chameleon'
desc = 'Both a framework and an application for steganography'
userOrg = 'antoineaube'
licenses = ['MIT']
vcsUrl = 'https://github.com/AntoineAube/Chameleon.git'
version {
name = '1.0'
desc = '1.0'
released = new Date()
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.7'
}
artifacts {
archives file('gradlew')
}
publishing {
publications {
core(MavenPublication) {
groupId project.group
artifactId 'chameleon-core'
version project.version
artifact file("chameleon-core/build/libs/chameleon-core-${project.version}.jar")
}
gui(MavenPublication) {
groupId project.group
artifactId 'chameleon-gui'
version project.version
artifact file("chameleon-gui/build/libs/chameleon-gui-${project.version}.jar")
}
patterns(MavenPublication) {
groupId project.group
artifactId 'chameleon-patterns'
version project.version
artifact file("chameleon-patterns/build/libs/chameleon-patterns-${project.version}.jar")
}
pictures(MavenPublication) {
groupId project.group
artifactId 'chameleon-pictures'
version project.version
artifact file("chameleon-pictures/build/libs/chameleon-pictures-${project.version}.jar")
}
}
}