-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
49 lines (40 loc) · 937 Bytes
/
build.gradle
File metadata and controls
49 lines (40 loc) · 937 Bytes
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
wrapper {
gradleVersion = '8.12'
}
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
if (project.hasProperty("topobyte")) {
apply from: 'file:///' + System.getProperty("user.home") \
+ '/.gradle/topobyte.gradle'
}
group = pGroup
version = pVersion
repositories {
mavenCentral()
}
java {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
dependencies {
api 'org.slf4j:slf4j-api:1.6.1'
testRuntimeOnly 'org.slf4j:slf4j-log4j12:1.6.1'
testRuntimeOnly 'log4j:log4j:1.2.16'
}
java {
withSourcesJar()
}
def pomInfo = new XmlSlurper().parse(new File(projectDir, 'info.pom'));
publishing {
publications {
maven(MavenPublication) {
from components.java
pom {
name = "$pomInfo.name"
description = "$pomInfo.description"
url = "$pomInfo.url"
}
}
}
}