Skip to content

Commit

Permalink
Remove uploadArchives and installArchives (#276)
Browse files Browse the repository at this point in the history
* Update description

* Update actions workflows

* Update remaining task configurations

* Remove leftover import
  • Loading branch information
ZacSweers committed Jun 21, 2021
1 parent ea1d011 commit 99717ab
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
java-version: 1.8

- name: Upload release
run: ./gradlew uploadArchives --no-daemon --no-parallel
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
echo "VERSION_NAME=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2)" >> $GITHUB_ENV
- name: Publish snapshot
run: ./gradlew uploadArchives --no-daemon --no-parallel
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel
if: endsWith(env.VERSION_NAME, '-SNAPSHOT')
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ POM_ARTIFACT_ID=gradle-maven-publish-plugin
POM_NAME=Gradle Maven Publish Plugin
POM_PACKAGING=jar

POM_DESCRIPTION=Gradle plugin that configures an uploadArchives task to automatically upload all of your Java, Kotlin or Android libraries to any Maven instance.
POM_DESCRIPTION=Gradle plugin that configures publish tasks to automatically upload all of your Java, Kotlin, Gradle, or Android libraries to any Maven instance.
POM_INCEPTION_YEAR=2018

POM_URL=https://github.com/vanniktech/gradle-maven-publish-plugin/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.vanniktech.maven.publish

import com.vanniktech.maven.publish.legacy.checkProperties
import com.vanniktech.maven.publish.legacy.configureArchivesTasks
import com.vanniktech.maven.publish.legacy.configureMavenCentral
import com.vanniktech.maven.publish.legacy.configurePlatform
import com.vanniktech.maven.publish.legacy.configurePom
Expand All @@ -22,7 +21,6 @@ open class MavenPublishPlugin : Plugin<Project> {
p.checkProperties()
p.configureMavenCentral()
p.configureSigning()
p.configureArchivesTasks()
p.configurePlatform()
}
}
22 changes: 0 additions & 22 deletions src/main/kotlin/com/vanniktech/maven/publish/legacy/Tasks.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ class MavenPublishPluginTest {
assertThat(project.group).isNotNull()
assertThat(project.version).isNotNull()

val uploadArchives = project.tasks.findByName("uploadArchives")
val uploadArchives = project.tasks.findByName("publish")
assertThat(uploadArchives).isNotNull()

val installArchives = project.tasks.findByName("installArchives")
val installArchives = project.tasks.findByName("publishToMavenLocal")
assertThat(installArchives).isNotNull()
}
}

0 comments on commit 99717ab

Please sign in to comment.