File tree Expand file tree Collapse file tree 2 files changed +22
-15
lines changed
Expand file tree Collapse file tree 2 files changed +22
-15
lines changed Original file line number Diff line number Diff line change @@ -123,10 +123,18 @@ locally, which will avoid using too much disk-space
123123
124124### Release it
125125
126- ./gradlew --console=plain release && ./gradlew closeAndReleaseRepository
127-
126+ * Check the version defined in ` gradle.properties `
127+ * Push changes to GitHub
128+ * Publish the binaries to Maven Central
129+
130+ ./gradlew --console=plain publishToMavenCentral
131+
128132* This should automatically release the new version on MavenCentral
129- * Afterwards go to the [ Github releases page] ( https://github.com/centic9/commons-dost/releases ) and add release-notes
133+ * Apply tag in Github (` git tag ` && ` git push --tags ` )
134+ * Increase the version in ` gradle.properties ` afterwards
135+ * Afterwards go to the [ Github tags page] ( https://github.com/centic9/CommonCrawlDocumentDownload/tags ) and
136+ create a release and add release-notes for the published version
137+ * The resulting binaries should appear at https://repo1.maven.org/maven2/org/dstadler/CommonCrawlDocumentDownload/
130138
131139## Support this project
132140
Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ buildscript {
77 }
88}
99plugins {
10+ id ' java-library'
1011 id ' maven-publish'
11- // https://github.com/researchgate /gradle-release
12- id ' net.researchgate.release ' version ' 3.1 .0'
12+ // https://github.com/SgtSilvio /gradle-maven-central-publishing
13+ id ' io.github.sgtsilvio.gradle.maven-central-publishing ' version ' 0.4 .0'
1314 id ' io.codearte.nexus-staging' version ' 0.30.0'
1415}
1516
16- apply plugin : ' java'
1717apply plugin : ' de.thetaphi.forbiddenapis'
1818apply plugin : ' jacoco'
1919apply plugin : ' signing'
@@ -102,21 +102,22 @@ tasks.register('javadocJar', Jar) {
102102 from javadoc
103103}
104104
105+ tasks. withType(Jar ). configureEach { task ->
106+ task. doLast {
107+ ant. checksum algorithm : ' md5' , file : it. archivePath
108+ ant. checksum algorithm : ' sha1' , file : it. archivePath
109+ }
110+ }
111+
105112java {
106113 withJavadocJar()
107114 withSourcesJar()
108115}
109116
110- release {
111- git {
112- requireBranch. set(' master' )
113- }
114- }
115-
116117publishing {
117118 publications {
118119 mavenJava(MavenPublication ) {
119- artifactId = archivesBaseName
120+ artifactId = ' commoncrawldownload '
120121 from components. java
121122
122123 pom {
@@ -158,8 +159,6 @@ signing {
158159 sign publishing. publications. mavenJava
159160}
160161
161- afterReleaseBuild. dependsOn publish
162-
163162tasks. register(' lookupURLs' , JavaExec ) {
164163 dependsOn compileJava
165164 description = ' Reads the current Common Crawl URL index data and extracts all URLs for interesting mime-types or file extensions'
You can’t perform that action at this time.
0 commit comments