-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
82 lines (75 loc) · 1.88 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
plugins {
id 'java-library'
id 'maven-publish'
id 'java-library-distribution'
id "com.github.johnrengelman.shadow" version "7.1.0"
id "net.ltgt.errorprone" version "2.0.2"
id "com.diffplug.spotless" version "5.16.0"
id "com.vanniktech.maven.publish" version "0.18.0"
id "signing"
}
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation 'fr.inria.gforge.spoon:spoon-core:9.2.0-beta-5'
implementation 'com.google.flogger:flogger:0.6'
implementation 'com.google.flogger:flogger-system-backend:0.6'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.2'
testImplementation "com.google.truth:truth:1.1.3"
implementation 'com.google.guava:guava:30.1-jre'
errorprone("com.google.errorprone:error_prone_core:2.9.0")
testImplementation "com.google.truth:truth:1.1.2"
}
group = 'org.mosim.refactorlizar'
version = '0.0.3'
distributions {
main {
distributionBaseName = 'architecture-evaluation-tool'
contents {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
test {
useJUnitPlatform()
}
description = 'architecture.evaluation'
spotless {
java {
target "**/*.java"
targetExclude "**/test/resources/**", "**/build/**"
trimTrailingWhitespace()
removeUnusedImports()
googleJavaFormat().aosp()
}
groovy {
target "**/*.gradle"
// Use the default version and Groovy-Eclipse default configuration
greclipse()
}
}
allprojects {
plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
sonatypeHost = "S01"
}
}
}
signing {
if (project.hasProperty('signing.keyId') && project.hasProperty('signing.secretKeyRingFile')) {
sign configurations.archives
sign configurations.shadow
}
}