Skip to content

Commit

Permalink
fix: publishing fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
augi committed Mar 24, 2021
1 parent 36a3410 commit 2f691d2
Showing 1 changed file with 25 additions and 31 deletions.
56 changes: 25 additions & 31 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
plugins {
id 'groovy'
id 'maven-publish'
id 'java-gradle-plugin'
id 'signing'
id 'io.github.gradle-nexus.publish-plugin' version '1.0.0'
id 'com.gradle.plugin-publish' version '0.13.0'
}

apply plugin: 'groovy'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
}

group 'cz.augi'
version = version == 'unspecified' ? 'DEVELOPER-SNAPSHOT' : version
Expand All @@ -16,8 +16,6 @@ repositories {
}

dependencies {
implementation gradleApi()
testImplementation gradleTestKit()
testCompile group: 'junit', name: 'junit', version: '4.13.2'
testCompile ('org.spockframework:spock-core:1.3-groovy-2.5') {
exclude group:'org.codehaus.groovy'
Expand Down Expand Up @@ -55,34 +53,30 @@ java {
withSourcesJar()
}

publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
artifactId = archivesBaseName
pom {
name = 'Gradle Docker Java Plugin'
description = 'Gradle plugin that wraps your JVM application to a new Docker image.'
url = 'https://github.com/augi/gradle-docker-java'
licenses {
license {
name = 'The MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id = 'augi'
name = 'Michal Augustýn'
email = '[email protected]'
}
afterEvaluate {
publishing.publications.forEach {
it.pom {
name = 'Gradle Docker Java Plugin'
description = 'Gradle plugin that wraps your JVM application to a new Docker image.'
url = 'https://github.com/augi/gradle-docker-java'
licenses {
license {
name = 'The MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
scm {
connection = 'scm:git:git://github.com/augi/gradle-docker-java.git'
developerConnection = 'scm:git:ssh://github.com/augi/gradle-docker-java.git'
url = 'https://github.com/augi/gradle-docker-java'
}
developers {
developer {
id = 'augi'
name = 'Michal Augustýn'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/augi/gradle-docker-java.git'
developerConnection = 'scm:git:ssh://github.com/augi/gradle-docker-java.git'
url = 'https://github.com/augi/gradle-docker-java'
}
}
}
}
Expand Down

0 comments on commit 2f691d2

Please sign in to comment.