-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
114 lines (99 loc) · 3.35 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
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'signing'
group = "com.github.tsantalis"
version = "2.3.2"
applicationName = rootProject.name
mainClassName = "org.refactoringminer.RefactoringMiner"
sourceSets {
main {
java {
srcDir 'src'
srcDir 'src-test'
}
resources {
srcDir 'res'
}
}
test {
java {
srcDir 'src-test'
}
}
}
repositories {
//maven {
// url 'https://raw.githubusercontent.com/jmini/ecentral/HEAD/repo'
//}
mavenCentral()
}
dependencies {
implementation 'org.eclipse.jgit:org.eclipse.jgit:5.13.0.202109080827-r'
implementation 'org.slf4j:slf4j-log4j12:1.7.36'
implementation 'junit:junit:4.13.2'
//implementation platform('fr.jmini.ecentral:eclipse-platform-dependencies:4.24')
//implementation 'org.eclipse.jdt:org.eclipse.jdt.core'
implementation 'org.eclipse.jdt:org.eclipse.jdt.core:3.30.0'
implementation 'org.apache.commons:commons-text:1.9'
implementation 'org.kohsuke:github-api:1.135'
implementation 'io.github.java-diff-utils:java-diff-utils:4.11'
testImplementation 'junit:junit:4.13.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 = '[email protected]'
}
}
scm {
connection = 'scm:git:[email protected]:tsantalis/RefactoringMiner.git'
developerConnection = 'scm:git:[email protected]:tsantalis/RefactoringMiner.git'
url = 'https://github.com/tsantalis/RefactoringMiner/tree/master'
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
tasks.withType(Sign) {
onlyIf { isReleaseVersion }
}