Skip to content

Commit

Permalink
build: Add publish-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
osipxd committed Apr 17, 2024
1 parent fa84435 commit 930c26f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@ import com.redmadrobot.build.dsl.setGitHubProject
plugins {
com.redmadrobot.`publish-config`
com.redmadrobot.`android-config`
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
}

nexusPublishing {
repositories {
sonatype {
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
}
}

val datastoreVersion = libs.versions.datastore.get()
subprojects {
allprojects {
group = "io.github.osipxd"
version = "$datastoreVersion-beta01"
}
Expand Down
3 changes: 3 additions & 0 deletions encrypted-datastore-preferences/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ dependencies {
api(project(":encrypted-datastore"))
api(libs.androidx.datastore.preferences.core)
}

// All Java classes here are package-private, so don't generate javadoc
tasks.getByName("javadoc") { enabled = false }

0 comments on commit 930c26f

Please sign in to comment.