Skip to content

Commit

Permalink
Attempt at fixing publish config
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Mar 23, 2024
1 parent e5a549d commit 5d3380b
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 22 deletions.
21 changes: 14 additions & 7 deletions android/MapLibreUI/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ android {
composeOptions {
kotlinCompilerExtensionVersion '1.3.2'
}
publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
}
}
}

dependencies {
Expand Down Expand Up @@ -65,14 +71,15 @@ dependencies {
debugImplementation 'androidx.compose.ui:ui-test-manifest'
}

afterEvaluate {
publishing {
publications {
mavenJava(MavenPublication) {
from components.release
publishing {
publications {
"${project.name}-release"(MavenPublication) {
groupId = 'com.stadiamaps'
artifactId = 'ferrostar-maplibreui'
version = project.version

groupId = 'com.stadiamaps'
artifactId = 'ferrostar-maplibreui'
afterEvaluate {
from components.release
}
}
}
Expand Down
24 changes: 12 additions & 12 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ plugins {
id 'maven-publish'
}

subprojects {
version = "0.0.1"

publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/stadiamaps/ferrostar")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/stadiamaps/ferrostar")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

allprojects {
version = "0.0.1"
}
20 changes: 20 additions & 0 deletions android/compose-ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ android {
composeOptions {
kotlinCompilerExtensionVersion '1.3.2'
}
publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
}
}
}

dependencies {
Expand All @@ -57,4 +63,18 @@ dependencies {

debugImplementation 'androidx.compose.ui:ui-tooling'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
}

publishing {
publications {
"${project.name}-release"(MavenPublication) {
groupId = 'com.stadiamaps'
artifactId = 'ferrostar-composeui'
version = project.version

afterEvaluate {
from components.release
}
}
}
}
24 changes: 21 additions & 3 deletions android/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ plugins {
id 'com.ncorti.ktfmt.gradle'
}

// TODO: Publishing?

android {
namespace 'com.stadiamaps.ferrostar.core'
compileSdk 34
Expand All @@ -33,6 +31,12 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
}
}
}

dependencies {
Expand Down Expand Up @@ -91,4 +95,18 @@ android.libraryVariants.all { variant ->
// idea.module.generatedSourceDirs += file("${buildDir}/generated/source/uniffi/${variant.name}/java/uniffi")

sourceSet.java.srcDir 'src/main/java'
}
}

publishing {
publications {
"${project.name}-release"(MavenPublication) {
groupId = 'com.stadiamaps'
artifactId = 'ferrostar-core'
version = project.version

afterEvaluate {
from components.release
}
}
}
}

0 comments on commit 5d3380b

Please sign in to comment.