I'm trying to publish an artifact to a corporate repository. I set up the maven-publish plugin as follows (I use build.gradle.kts):
plugins {
`java-library`
`maven-publish`
}
val nexusUsername: String by project
val nexusPassword: String by…
I am using the maven-publish plugin to publish to an internal repo. What I can't figure out is how to publish so that the -SNAPSHOT is not part of the tag. I know if I am in master branch in git it does but I need it to do it on another non-master…
I'm using the maven-publish plugin in my Gradle build. When my project's version includes -SNAPSHOT (eg, 1.3-SNAPSHOT), it publishes with a generated version, like foo-1.3-20230418.171737-3.war.
How can I customize the snapshot version suffix…
I want to publish an Android library (.aar) to a Maven Repository. I manage to do it using the signing and maven-publish gradle plugins. But the signing plugin does not seem to work with a keystore file: it seems to take something like…
I very often use the following entry
implementation(platform("org.springframework.boot:spring-boot-dependencies:3.0.4"))
It works fine until it comes to maven-publish.
The problem is that it also publishes this entry. When I use library in other…
I've created an Android library called Library and I want to publish it to a private maven repository and then consume it in an app called App.
I am encountering an issue however which is making the usage of the library untenable for App. The issue…
In Kotlin multiplatform when i try to use compose module interface or class in non-compose module getting this error when i do maven-publish in windows and ios.
For example i created a project and added PR with error…
I'm using android studio bumblebee , gradle version 7.4 , gradle plugin version 7.3.1.
I'm trying to publish my library on maven using this guide Jitpack Github
But when i try to run ./gradlew install it shows ambiguos error.
And if i try to publish…
When you want to publish your library, there are two ways to do it.
Using artifact()
publishing {
publications {
aar(MavenPublication) {
groupId packageName
version = libraryVersion
artifactId…
I am trying to publish to my local repositories
I have a multi module project. For one of the sub project, I am trying to publish to local maven repo.
But nothing is pushed but task is success.
Am I missing something
plugins {
id…
Using Gradle 7.5.1 and Kotlin DSL scripts.
I have a multi-project that publishes individual libraries to Maven - this is working. I'm also using the researchgate release plugin to tag and bump the version number - this is also working.
What I would…
I am trying to publish obfuscated jars to nexus repo.
I created a task to obfuscate the code using proguard, then a task that copy the obfuscated jars into build folder.
task proguard (type: proguard.gradle.ProGuardTask) {
println("Performing…
I have this task in my build.gradle file that was using maven:
task pom {
doLast {
pom {
project {
groupId "${project.group}.${project.name}"
artifactId project.name
version…
When i run the generateMetadataFileFormMavenPublication task, i get a json at build/publications/maven/module.json which is missing these fields: name, description, minimumCoreVersion, title, version, author. IntelliJ prompts me to add them back in.…