Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support publishing Gradle plugin marker artifact #766

Merged
merged 3 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions plugins/gradle/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "com.github.johnrengelman.shadow" version "8.1.0"
id "com.gradle.plugin-publish" version "1.2.1"
id 'java'
id 'groovy'
id 'maven-publish'
Expand Down Expand Up @@ -44,6 +45,19 @@ dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.11'
}

gradlePlugin {
website = "https://mobivm.github.io"
vcsUrl = "https://github.com/MobiVM/robovm"
plugins {
create("robovm") {
id = "com.mobidevelop.robovm"
implementationClass = "org.robovm.gradle.RoboVMPlugin"
displayName = "RoboVM Gradle Plugin"
description = "The RoboVM Gradle Plugin provides a way to build RoboVM apps using Gradle."
}
}
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand Down Expand Up @@ -125,3 +139,7 @@ signing {
assemble.dependsOn('shadowJar')
publishToMavenLocal.dependsOn('shadowJar')
publish.dependsOn('shadowJar')

tasks.withType(AbstractPublishToMaven).configureEach {
dependsOn(tasks.withType(Sign))
}
1 change: 1 addition & 0 deletions plugins/gradle/src/main/resources/META-INF/gradle-plugins/robovm.properties
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Keep this file here for legacy plugin id, to compat users applying this plugin via buildscript classpath.
implementation-class=org.robovm.gradle.RoboVMPlugin