Skip to content

Commit

Permalink
Maven Publish Plugin (#3410)
Browse files Browse the repository at this point in the history
Co-authored-by: Alejandro Serrano <[email protected]>
  • Loading branch information
nomisRev and serras authored Apr 26, 2024
1 parent 2613059 commit 2860c12
Show file tree
Hide file tree
Showing 43 changed files with 101 additions and 260 deletions.
161 changes: 0 additions & 161 deletions .github/unused_workflows/publish.yml

This file was deleted.

20 changes: 9 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ name: "Publish all libs, Arrow-stack and Docs"

on:
push:
branch:
- 'arrow-2'
#on:
# workflow_dispatch:
# branches: [main]
# inputs:
# version:
# description: 'Version'
# required: true
# type: string
branches: [ main ]
workflow_dispatch:
branches: [ main ]
inputs:
version:
description: 'Version'
required: true
type: string

env:
BASEDIR: ${{github.workspace}}/arrow-libs
Expand Down Expand Up @@ -55,4 +53,4 @@ jobs:
path: '**/build/reports/**'

- name: Publish next major SNAPSHOT version
run: ./gradlew -Pversion=${{ inputs.version }} publishToSonatype closeSonatypeStagingRepository
run: ./gradlew -Pversion=${{ inputs.version }} publish
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-annotations/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
alias(libs.plugins.publish)
alias(libs.plugins.spotless)
}

Expand Down
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-annotations/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Maven publishing configuration
pom.name=Arrow Annotations
POM_NAME=Arrow Annotations
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-atomic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
alias(libs.plugins.publish)
alias(libs.plugins.kotlinx.kover)
alias(libs.plugins.spotless)
}
Expand Down
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-atomic/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Maven publishing configuration
pom.name=Arrow Atomic
POM_NAME=Arrow Atomic
# Build configuration
kapt.incremental.apt=false
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-autoclose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
alias(libs.plugins.publish)
alias(libs.plugins.spotless)
}

Expand Down
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-autoclose/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Maven publishing configuration
pom.name=Arrow AutoCloseable
POM_NAME=Arrow AutoCloseable
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-cache4k/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
plugins {
`java-library`
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.publish)
alias(libs.plugins.publish)
alias(libs.plugins.spotless)
}

Expand Down
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-cache4k/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Maven publishing configuration
pom.name=Arrow + cache4k
POM_NAME=Arrow + cache4k
# Build configuration
kapt.incremental.apt=false
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-core-high-arity/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
alias(libs.plugins.publish)
alias(libs.plugins.kotlinx.kover)
alias(libs.plugins.spotless)
}
Expand Down
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-core-high-arity/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Maven publishing configuration
pom.name=Arrow Core High Arity
POM_NAME=Arrow Core High Arity
# Build configuration
kapt.incremental.apt=false
6 changes: 3 additions & 3 deletions arrow-libs/core/arrow-core-retrofit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
plugins {
id(libs.plugins.kotlin.jvm.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
alias(libs.plugins.publish)
alias(libs.plugins.kotlinx.serialization) // Needed for testing only
alias(libs.plugins.kotlinx.kover)
alias(libs.plugins.spotless)
Expand All @@ -18,8 +18,8 @@ spotless {
apply(from = property("ANIMALSNIFFER"))

dependencies {
compileOnly(libs.kotlin.stdlib)
compileOnly(projects.arrowCore)
implementation(libs.kotlin.stdlib)
api(projects.arrowCore)
compileOnly(libs.squareup.retrofit.lib)

testImplementation(projects.arrowCore)
Expand Down
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-core-retrofit/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Maven publishing configuration
pom.name=Arrow-Core-Retrofit
POM_NAME=Arrow-Core-Retrofit
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-core-serialization/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)

alias(libs.plugins.kotlinx.kover)
alias(libs.plugins.spotless)
id(libs.plugins.kotlinx.serialization.get().pluginId)
Expand Down
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-core-serialization/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Maven publishing configuration
pom.name=Arrow Core Serialization
POM_NAME=Arrow Core Serialization
# Build configuration
kapt.incremental.apt=false
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import java.time.Duration
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
alias(libs.plugins.publish)
alias(libs.plugins.kotlinx.kover)
alias(libs.plugins.spotless)
}
Expand Down
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-core/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Maven publishing configuration
pom.name=Arrow Core
POM_NAME=Arrow Core
# Build configuration
kapt.incremental.apt=false
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-eval/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
alias(libs.plugins.publish)
alias(libs.plugins.kotlinx.kover)
alias(libs.plugins.spotless)
}
Expand Down
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-eval/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Maven publishing configuration
pom.name=Arrow Eval
POM_NAME=Arrow Eval
# Build configuration
kapt.incremental.apt=false
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-functions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
alias(libs.plugins.publish)
alias(libs.plugins.kotlinx.kover)
alias(libs.plugins.spotless)
}
Expand Down
2 changes: 1 addition & 1 deletion arrow-libs/core/arrow-functions/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Maven publishing configuration
pom.name=Arrow Functions
POM_NAME=Arrow Functions
# Build configuration
kapt.incremental.apt=false
2 changes: 1 addition & 1 deletion arrow-libs/fx/arrow-collectors/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import java.time.Duration
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
alias(libs.plugins.publish)
alias(libs.plugins.spotless)
alias(libs.plugins.kotlinx.kover)
}
Expand Down
2 changes: 1 addition & 1 deletion arrow-libs/fx/arrow-collectors/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Maven publishing configuration
pom.name=Arrow Collectors
POM_NAME=Arrow Collectors
# Build configuration
kapt.incremental.apt=false
2 changes: 1 addition & 1 deletion arrow-libs/fx/arrow-fx-coroutines/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import java.time.Duration
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
alias(libs.plugins.publish)
alias(libs.plugins.kotlinx.kover)
alias(libs.plugins.spotless)
}
Expand Down
2 changes: 1 addition & 1 deletion arrow-libs/fx/arrow-fx-coroutines/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Maven publishing configuration
pom.name=Arrow-Fx-Coroutines
POM_NAME=Arrow-Fx-Coroutines
2 changes: 1 addition & 1 deletion arrow-libs/fx/arrow-fx-stm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
alias(libs.plugins.publish)
alias(libs.plugins.kotlinx.kover)
alias(libs.plugins.spotless)
}
Expand Down
2 changes: 1 addition & 1 deletion arrow-libs/fx/arrow-fx-stm/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Maven publishing configuration
pom.name=Arrow-Fx-STM
POM_NAME=Arrow-Fx-STM
Loading

0 comments on commit 2860c12

Please sign in to comment.