Skip to content

Commit 827b78e

Browse files
authored
Publish arrow-optics in Gradle Plugin Portal (#3761)
1 parent 9e18baa commit 827b78e

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,7 @@ jobs:
3737
run: ./gradlew assemble -Pversion=${{ github.event.release.name }} -Penable_wasm=true
3838

3939
- name: Publish artifacts
40-
run: ./gradlew -Pversion=${{ github.event.release.name }} publish -Penable_wasm=true
40+
run: ./gradlew publish -Pversion=${{ github.event.release.name }} -Penable_wasm=true
41+
42+
- name: Publish plug-ins
43+
run: ./gradlew publishPlugins -Pversion=${{ github.event.release.name }} -Penable_wasm=true -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY_ARROW }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET_ARROW }}

arrow-libs/optics/arrow-optics-plugin/build.gradle.kts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ plugins {
33
id("java-gradle-plugin")
44
id("com.github.gmazzo.buildconfig") version "5.7.0"
55
id("com.diffplug.spotless")
6-
id("com.vanniktech.maven.publish.base")
6+
// id("com.vanniktech.maven.publish.base")
7+
id("com.gradle.plugin-publish") version "2.0.0"
78
}
89

910
group = property("projects.group").toString()
@@ -59,16 +60,21 @@ buildConfig {
5960
}
6061

6162
gradlePlugin {
63+
website = "https://arrow-kt.io/"
64+
vcsUrl = "https://github.com/arrow-kt/arrow"
65+
6266
plugins {
6367
create("ArrowOpticsPlugin") {
6468
id = "arrow.optics.plugin"
6569
displayName = "ArrowOpticsPlugin"
66-
description = "ArrowOpticsPlugin"
70+
description = "Arrow Optics for Kotlin (Multiplatform)"
6771
implementationClass = "arrow.optics.plugin.ArrowOpticsPlugin"
72+
tags = listOf("arrow", "optics", "kotlin")
6873
}
6974
}
7075
}
7176

77+
/*
7278
mavenPublishing {
7379
configureBasedOnAppliedPlugins()
7480
pomFromGradleProperties()
@@ -78,6 +84,8 @@ mavenPublishing {
7884
}
7985
}
8086
87+
*/
88+
8189
if (project.findProperty("onlyLocal")?.toString()?.toBooleanStrict() == true) {
8290
publishing {
8391
repositories {

0 commit comments

Comments
 (0)