diff --git a/README.md b/README.md index 6556c9b9..56fbf969 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ project versions along SCM tag versions. ``` plugins { - id 'pl.allegro.tech.build.axion-release' version '1.13.0' + id 'pl.allegro.tech.build.axion-release' version '1.13.1' } project.version = scmVersion.version diff --git a/build.gradle b/build.gradle index 857a04ad..895c10d9 100644 --- a/build.gradle +++ b/build.gradle @@ -38,7 +38,10 @@ group = 'pl.allegro.tech.build' version = scmVersion.version java { + withSourcesJar() + withJavadocJar() sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } repositories { @@ -47,9 +50,9 @@ repositories { } project.ext.versions = [ - jgit: '5.10.0.202012080955-r', - jsch: '0.1.55', - jschAgent: '0.0.9' + jgit : '5.10.0.202012080955-r', + jsch : '0.1.55', + jschAgent: '0.0.9' ] sourceSets { @@ -92,7 +95,7 @@ dependencies { implementation group: 'com.github.zafarkhaja', name: 'java-semver', version: '0.9.0' - testCompile (group: 'org.ajoberstar.grgit', name: 'grgit-core', version: '4.0.1') { + testCompile(group: 'org.ajoberstar.grgit', name: 'grgit-core', version: '4.0.1') { exclude group: 'org.eclipse.jgit', module: 'org.eclipse.jgit.ui' exclude group: 'org.eclipse.jgit', module: 'org.eclipse.jgit' } @@ -106,19 +109,15 @@ dependencies { testCompile gradleTestKit() } -shadowJar { - minimize() -} - task relocateShadowJar(type: ConfigureShadowRelocation) { target = tasks.shadowJar } tasks.shadowJar.dependsOn tasks.relocateShadowJar - shadowJar { archiveClassifier.set('') + minimize() } project.configurations { @@ -179,22 +178,24 @@ jacocoTestReport { } } -pluginBundle { - website = 'https://github.com/allegro/axion-release-plugin' - vcsUrl = 'https://github.com/allegro/axion-release-plugin' - description = 'Release and version management plugin.' - tags = ['release', 'version'] +if (System.getenv("GRADLE_PORTAL_KEY")) { + pluginBundle { + website = 'https://github.com/allegro/axion-release-plugin' + vcsUrl = 'https://github.com/allegro/axion-release-plugin' + description = 'Release and version management plugin.' + tags = ['release', 'version'] - plugins { - release { - id = 'pl.allegro.tech.build.axion-release' - displayName = 'axion-release-plugin' + plugins { + release { + id = 'pl.allegro.tech.build.axion-release' + displayName = 'axion-release-plugin' + } } - } - mavenCoordinates { - groupId = 'pl.allegro.tech.build' - artifactId = 'axion-release-plugin' + mavenCoordinates { + groupId = 'pl.allegro.tech.build' + artifactId = 'axion-release-plugin' + } } } @@ -202,6 +203,8 @@ publishing { publications { sonatype(MavenPublication) { publication -> from project.shadow.component(publication) + artifact sourcesJar + artifact javadocJar pom { name = project.name description = 'Gradle release and version management plugin' @@ -245,6 +248,6 @@ if (System.getenv("GPG_KEY_ID")) { System.getenv("GPG_PRIVATE_KEY"), System.getenv("GPG_PRIVATE_KEY_PASSWORD") ) - sign publishing.publications.sonatype + sign publishing.publications } } diff --git a/mkdocs.yml b/mkdocs.yml index 9f820c91..ac256db0 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -13,7 +13,7 @@ markdown_extensions: anchorlink: true extra: - version: '1.13.0' + version: '1.13.1' pages: - Home: 'index.md'