/
build.gradle
53 lines (42 loc) · 982 Bytes
/
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
wrapper {
gradleVersion = '5.2.1'
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
if (project.hasProperty("topobyte")) {
apply from: 'file:///' + System.getProperty("user.home") \
+ '/.gradle/topobyte7.gradle'
}
group = pGroup
version = pVersion
repositories {
mavenCentral()
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
dependencies {
compile "commons-cli:commons-cli:1.3.1"
testCompile 'junit:junit:4.12'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
def POM_DESCRIPTION=new File('pom.description').text.trim()
afterEvaluate { project ->
uploadArchives {
repositories {
mavenDeployer {
pom.project {
name POM_NAME
description POM_DESCRIPTION
url POM_URL
}
}
}
}
}