Skip to content

Commit 4c6dc6b

Browse files
committed
Simplify build.gradle
1 parent 04b2f04 commit 4c6dc6b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

build.gradle

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@ targetCompatibility = 1.8
2121

2222
compileJava.options.encoding = 'UTF-8'
2323

24-
ext {
25-
title = 'liblinear'
26-
}
27-
2824
jar {
2925
manifest {
30-
attributes 'Implementation-Title': title, 'Implementation-Version': archiveVersion
26+
attributes 'Implementation-Title': project.name, 'Implementation-Version': archiveVersion
3127
}
3228
}
3329

@@ -44,11 +40,11 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
4440
publishing {
4541
publications {
4642
mavenJava(MavenPublication) {
47-
groupId = 'de.bwaldvogel'
48-
artifactId = 'liblinear'
43+
groupId = project.group
44+
artifactId = project.name
4945
version = project.version
5046
pom {
51-
name = title
47+
name = project.name
5248
description = 'Java port of Liblinear'
5349
url = 'https://github.com/bwaldvogel/liblinear'
5450
inceptionYear = '2008'

0 commit comments

Comments
 (0)