deepmedia / deepmedia/Grease

Gradle sync problem with maven-publish plugin

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
107
Forks
11
PR merge metrics
No merged PRs in 30d

Description

agp = "8.9.1"
gradle = 8.11.1
grease = "0.3.4"

Have sample aar project, just adding `maven-publish` in plugins and describe publications, press "gradle sync" and got an error (attached):
[grease maven-publish gradle sync issue.txt](https://github.com/user-attachments/files/19613635/grease.maven-publish.gradle.sync.issue.txt)

mylib build.gradle.kts:
```
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.thirdparty.grease)
`maven-publish`
}

android {
namespace = "com.sample.mylib"
compileSdk = 35

defaultConfig {
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "11"
}
}

dependencies {
greaseTree(project(":core"))
greaseTree(project(":addons"))
}

publishing {
publications {
register("release") {
groupId = "my-company"
artifactId = "my-fused-library"
version = "1.0"
}
}

repositories {
maven {
name = "myrepo"
url = uri(layout.buildDirectory.dir("repo"))
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.