Skip to content

Commit

Permalink
Extract nexus as a separate module (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin committed Oct 10, 2021
1 parent 42a748d commit c76feb1
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 6 deletions.
12 changes: 12 additions & 0 deletions nexus/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
plugins {
id("shared")
}

dependencies {
api(gradleApi())
add("kapt", "com.squareup.moshi:moshi-kotlin-codegen:${Version.moshi}")

implementation("com.squareup.moshi:moshi:${Version.moshi}")
implementation("com.squareup.retrofit2:retrofit:${Version.retrofit}")
implementation("com.squareup.retrofit2:converter-moshi:${Version.retrofit}")
}
3 changes: 3 additions & 0 deletions nexus/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POM_ARTIFACT_ID=nexus
POM_NAME=Nexus related APIs and tasks
POM_DESCRIPTION=APIs and tasks to help working with the Nexus API that powers OSSRH and other Sonatype repositories
6 changes: 1 addition & 5 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ dependencies {
compileOnly(kotlin("gradle-plugin"))
compileOnly("com.android.tools.build:gradle:${Version.agp}")

add("kapt", "com.squareup.moshi:moshi-kotlin-codegen:${Version.moshi}")

implementation("com.squareup.moshi:moshi:${Version.moshi}")
implementation("com.squareup.retrofit2:retrofit:${Version.retrofit}")
implementation("com.squareup.retrofit2:converter-moshi:${Version.retrofit}")
implementation(project(":nexus"))

testImplementation(gradleTestKit())
testImplementation("junit:junit:${Version.junit}")
Expand Down
3 changes: 2 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ pluginManagement {
gradlePluginPortal()
}
}
include(":plugin")
include(":plugin")
include(":nexus")

0 comments on commit c76feb1

Please sign in to comment.