-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
74 lines (69 loc) · 1.54 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
plugins {
id "com.diffplug.spotless" version "5.14.3"
id 'edu.kit.kastel.sdq.case4lang.refactorlizar.java-conventions'
id "application"
id "maven-publish"
}
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
application {
mainClassName = 'edu.kit.kastel.sdq.case4lang.refactorlizar.core.RefactorLizar'
}
apply plugin: 'com.github.johnrengelman.shadow'
version = "0.0.2"
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/MoSimEngine/RefactorLizar")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}
allprojects {
apply plugin: 'com.diffplug.spotless'
}
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()
}
}
dependencies {
implementation project(":model")
implementation project (":core")
implementation project(':feature-scatter')
implementation project(':dependency-cycle')
implementation project(':dependency-direction')
implementation project(':language-blob')
implementation project(":class-split")
}
shadowJar {
mergeServiceFiles()
}
tasks.withType(JavaCompile).configureEach {
options.fork = true
}
defaultTasks "shadowJar"