Skip to content

Commit 19f34bf

Browse files
committed
Fix artifactId/directory structure for publishing
1 parent 0a21829 commit 19f34bf

File tree

1 file changed

+34
-33
lines changed

1 file changed

+34
-33
lines changed

build.gradle

+34-33
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
buildscript {
2-
repositories {
3-
mavenCentral()
4-
}
5-
dependencies {
6-
classpath 'de.thetaphi:forbiddenapis:3.4'
7-
}
2+
repositories {
3+
mavenCentral()
4+
}
5+
dependencies {
6+
classpath 'de.thetaphi:forbiddenapis:3.4'
7+
}
88
}
99
plugins {
1010
id 'maven-publish'
11-
// https://github.com/researchgate/gradle-release
12-
id 'net.researchgate.release' version '3.0.2'
11+
// https://github.com/researchgate/gradle-release
12+
id 'net.researchgate.release' version '3.0.2'
1313
id 'io.codearte.nexus-staging' version '0.30.0'
1414
}
1515

@@ -23,25 +23,25 @@ group = 'org.dstadler'
2323
archivesBaseName = 'commoncrawldownload'
2424

2525
repositories {
26-
mavenCentral()
26+
mavenCentral()
2727
}
2828

2929
forbiddenApis {
30-
suppressAnnotations = ['org.dstadler.commons.util.SuppressForbidden']
31-
bundledSignatures = [ 'jdk-reflection', 'commons-io-unsafe-2.11.0', 'jdk-internal' ]
32-
signaturesFiles += files('config/forbidden-apis/http-signatures.txt')
30+
suppressAnnotations = ['org.dstadler.commons.util.SuppressForbidden']
31+
bundledSignatures = [ 'jdk-reflection', 'commons-io-unsafe-2.11.0', 'jdk-internal' ]
32+
signaturesFiles += files('config/forbidden-apis/http-signatures.txt')
3333
}
3434
forbiddenApisMain {
35-
// 'jdk-unsafe', 'jdk-system-out'
36-
bundledSignatures += [ 'jdk-deprecated', 'jdk-internal', 'jdk-non-portable' ]
37-
signaturesFiles += files('config/forbidden-apis/forbidden.signatures.txt')
35+
// 'jdk-unsafe', 'jdk-system-out'
36+
bundledSignatures += [ 'jdk-deprecated', 'jdk-internal', 'jdk-non-portable' ]
37+
signaturesFiles += files('config/forbidden-apis/forbidden.signatures.txt')
3838
}
3939

4040
dependencies {
4141
implementation 'org.dstadler:commons-dost:1.1.0.2'
4242
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
43-
implementation 'org.apache.commons:commons-lang3:3.12.0'
44-
implementation 'commons-io:commons-io:2.11.0'
43+
implementation 'org.apache.commons:commons-lang3:3.12.0'
44+
implementation 'commons-io:commons-io:2.11.0'
4545

4646
// version '0.20.2-cdh3u4' is referenced by webarchive-commons, but "vanished"...
4747
implementation 'org.apache.hadoop:hadoop-core:0.20.205.0'
@@ -55,31 +55,31 @@ dependencies {
5555
implementation 'com.google.code.findbugs:jsr305:3.0.2'
5656

5757
testImplementation 'junit:junit:4.13.2'
58-
testImplementation 'org.dstadler:commons-test:1.0.0.20'
58+
testImplementation 'org.dstadler:commons-test:1.0.0.20'
5959
}
6060

6161
wrapper {
6262
gradleVersion = '7.6'
6363
}
6464

6565
test {
66-
systemProperties = System.properties as Map<String, ?>
66+
systemProperties = System.properties as Map<String, ?>
6767

68-
// enable to show standard out and standard error of the test JVM(s) on the console
69-
// testLogging.showStandardStreams = true
68+
// enable to show standard out and standard error of the test JVM(s) on the console
69+
// testLogging.showStandardStreams = true
7070

71-
// http://forums.gradle.org/gradle/topics/jacoco_related_failure_in_multiproject_build
72-
systemProperties['user.dir'] = workingDir
71+
// http://forums.gradle.org/gradle/topics/jacoco_related_failure_in_multiproject_build
72+
systemProperties['user.dir'] = workingDir
7373
}
7474

7575
jacoco {
76-
toolVersion = '0.8.8'
76+
toolVersion = '0.8.8'
7777
}
7878

7979
jacocoTestReport {
8080
reports {
8181
xml.enabled true
82-
}
82+
}
8383
}
8484

8585
task sourcesJar(type: Jar) {
@@ -106,6 +106,7 @@ release {
106106
publishing {
107107
publications {
108108
mavenJava(MavenPublication) {
109+
artifactId = archivesBaseName
109110
from components.java
110111

111112
pom {
@@ -150,46 +151,46 @@ signing {
150151
afterReleaseBuild.dependsOn publish
151152

152153
task lookupURLs(type:JavaExec,dependsOn: compileJava) {
153-
description = 'Reads the current Common Crawl URL index data and extracts all URLs for interesting mime-types or file extensions'
154+
description = 'Reads the current Common Crawl URL index data and extracts all URLs for interesting mime-types or file extensions'
154155

155156
jvmArgs = [
156157
'-Xmx128m'
157158
]
158159

159160
main = 'org.dstadler.commoncrawl.index.DownloadURLIndex'
160-
classpath = sourceSets.main.runtimeClasspath
161+
classpath = sourceSets.main.runtimeClasspath
161162
}
162163

163164

164165
task downloadOldIndex(type:JavaExec,dependsOn: compileJava) {
165-
description = 'Reading blocks at beginning or the last stored block-number and download binary data from the common crawl archives'
166+
description = 'Reading blocks at beginning or the last stored block-number and download binary data from the common crawl archives'
166167

167168
jvmArgs = [
168169
'-Xmx128m'
169170
]
170171

171172
main = 'org.dstadler.commoncrawl.oldindex.ReadAndDownload'
172-
classpath = sourceSets.main.runtimeClasspath
173+
classpath = sourceSets.main.runtimeClasspath
173174
}
174175

175176
task downloadDocuments(type:JavaExec,dependsOn: compileJava) {
176-
description = 'Uses the URLs listed in commoncrawl.txt to download the documents from the Common Crawl'
177+
description = 'Uses the URLs listed in commoncrawl.txt to download the documents from the Common Crawl'
177178

178179
jvmArgs = [
179180
'-Xmx128m'
180181
]
181182

182183
main = 'org.dstadler.commoncrawl.index.DownloadFromCommonCrawl'
183-
classpath = sourceSets.main.runtimeClasspath
184+
classpath = sourceSets.main.runtimeClasspath
184185
}
185186

186187
task deduplicate(type:JavaExec,dependsOn: compileJava) {
187-
description = 'Compares files by size and hash and moves away identical files into a backup-directory'
188+
description = 'Compares files by size and hash and moves away identical files into a backup-directory'
188189

189190
jvmArgs = [
190191
'-Xmx1024m'
191192
]
192193

193194
main = 'org.dstadler.commoncrawl.Deduplicate'
194-
classpath = sourceSets.main.runtimeClasspath
195+
classpath = sourceSets.main.runtimeClasspath
195196
}

0 commit comments

Comments
 (0)