Improvement: Publish to gradle plugin portal (#485)

Publish plugins to gradle plugin portal
This commit is contained in:
Robert Kruszewski 2022-06-23 13:15:25 +01:00 committed by GitHub
parent 3820e4c13d
commit ac1019f247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 19 deletions

View file

@ -38,17 +38,15 @@ apply plugin: 'java-gradle-plugin'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'com.gradle.plugin-publish'
apply plugin: 'com.palantir.baseline'
apply plugin: 'com.palantir.baseline-java-versions'
apply plugin: 'com.palantir.consistent-versions'
apply plugin: 'com.palantir.external-publish'
apply plugin: 'com.palantir.external-publish-gradle-plugin'
apply plugin: 'com.palantir.external-publish-jar'
apply plugin: 'com.palantir.git-version'
apply plugin: 'com.palantir.java-format'
apply plugin: 'nebula.maven-publish'
apply plugin: 'nebula.source-jar'
apply plugin: 'org.inferred.processors'
apply plugin: 'com.palantir.jdks.latest'
apply plugin: 'org.inferred.processors'
group 'com.palantir.graal'
version gitVersion()
@ -67,12 +65,10 @@ dependencies {
}
gradlePlugin {
// do not add new task to publish to plugins.gradle.org
automatedPublishing = false
plugins {
graal {
id = 'com.palantir.graal'
displayName = 'Palantir Graal Plugin'
implementationClass = 'com.palantir.gradle.graal.GradleGraalPlugin'
}
}
@ -83,17 +79,6 @@ pluginBundle {
vcsUrl = 'https://github.com/palantir/gradle-graal'
description = 'A plugin for Gradle that adds tasks to download, extract and interact with GraalVM tooling.'
tags = ['graal', 'native-image']
plugins {
graal {
id = 'com.palantir.graal'
displayName = 'Palantir Graal Plugin'
}
}
}
publishPlugins.onlyIf {
versionDetails().isCleanTag
}
tasks.withType(JavaCompile) {

View file

@ -0,0 +1,5 @@
type: improvement
improvement:
description: Publish to gradle plugin portal
links:
- https://github.com/palantir/gradle-graal/pull/485