forked from tsantalis/RefactoringMiner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
123 lines (107 loc) · 3.57 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
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'signing'
group = "com.github.tsantalis"
version = "2.4.0"
applicationName = rootProject.name
mainClassName = "org.refactoringminer.RefactoringMiner"
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'res'
}
}
test {
java {
srcDir 'src-test'
}
resources {
srcDir 'src-test/data/'
}
}
}
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
}
dependencies {
implementation 'org.eclipse.jgit:org.eclipse.jgit:5.13.1.202206130422-r'
implementation 'org.slf4j:slf4j-api:2.0.6'
implementation 'org.slf4j:slf4j-simple:2.0.6'
implementation 'org.eclipse.jdt:org.eclipse.jdt.core:3.32.0'
implementation 'org.apache.commons:commons-text:1.10.0'
implementation 'org.kohsuke:github-api:1.135'
implementation 'io.github.java-diff-utils:java-diff-utils:4.12'
implementation 'com.github.gumtreediff:core:3.0.0'
implementation 'com.github.gumtreediff:gen.jdt:3.0.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.9.2'
testImplementation 'net.joshka:junit-json-params:5.9.2-r0'
testImplementation 'org.glassfish:javax.json:1.1.4'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.2'
}
java {
withJavadocJar()
withSourcesJar()
}
artifacts {
archives javadocJar, sourcesJar
}
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
publishing {
repositories {
maven {
def releaseRepo = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotRepo = "https://oss.sonatype.org/content/repositories/snapshots/"
url = isReleaseVersion ? releaseRepo : snapshotRepo
credentials {
username = project.hasProperty('ossrhUsername') ? ossrhUsername : "Unknown user"
password = project.hasProperty('ossrhPassword') ? ossrhPassword : "Unknown password"
}
}
}
publications {
mavenJava(MavenPublication) {
artifactId = 'refactoring-miner'
from components.java
pom {
name = "Refactoring Miner"
description = 'RefactoringMiner is a library/API written in Java that can detect refactorings applied in the history of a Java project.'
url = 'https://github.com/tsantalis/RefactoringMiner'
licenses {
license {
name = 'The MIT License (MIT)'
url = 'http://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'tsantalis'
name = 'Nikolaos Tsantalis'
email = 'tsantalis@gmail.com'
}
}
scm {
connection = 'scm:git:git@github.com:tsantalis/RefactoringMiner.git'
developerConnection = 'scm:git:git@github.com:tsantalis/RefactoringMiner.git'
url = 'https://github.com/tsantalis/RefactoringMiner/tree/master'
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
tasks.withType(Sign) {
onlyIf { isReleaseVersion }
}