Skip to content

Commit

Permalink
Move publishing block to java library block
Browse files Browse the repository at this point in the history
  • Loading branch information
seadowg committed May 28, 2024
1 parent 25b4e10 commit 09d2c7b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,18 @@ if (!project.hasProperty("android")) {

duplicateClassesStrategy = DuplicatesStrategy.WARN
}

publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'org.getodk'
artifactId = 'javarosa'
version = 'local'

from components.java
}
}
}
} else {
android {
namespace 'com.example'
Expand All @@ -130,18 +142,6 @@ if (!project.hasProperty("android")) {
}
}

publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'org.getodk'
artifactId = 'javarosa'
version = 'local'

from components.java
}
}
}

dependencies {
// Be sure to update dependencies in pom.xml to match
implementation 'joda-time:joda-time:2.10.13'
Expand Down

0 comments on commit 09d2c7b

Please sign in to comment.