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 2 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
27 changes: 27 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,28 @@ dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.11'
}

gradlePlugin {
website = "https://mobivm.github.io"
vcsUrl = "https://github.com/MobiVM/robovm"
plugins {
// Users can apply this in plugins block with the marker artifact id.
create("robovmNew") {
Goooler marked this conversation as resolved.
Show resolved Hide resolved
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."
}

// Legacy plugin id, to compat users applying this plugin via buildscript classpath.
create("robovmLegacy") {
id = "robovm"
Goooler marked this conversation as resolved.
Show resolved Hide resolved
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 +148,7 @@ signing {
assemble.dependsOn('shadowJar')
publishToMavenLocal.dependsOn('shadowJar')
publish.dependsOn('shadowJar')

tasks.withType(AbstractPublishToMaven).configureEach {
dependsOn(tasks.withType(Sign))
}

This file was deleted.