diff --git a/build.gradle.kts b/build.gradle.kts index c322970..2e057d3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,15 @@ -plugins { - alias(libs.plugins.androidApplication) apply false - alias(libs.plugins.jetbrainsKotlinAndroid) apply false -} \ No newline at end of file +buildscript { + repositories { + maven { + url = uri(extra.get("nexusURL") as String) + credentials { + username = extra.get("nexusUsername") as String + password = extra.get("nexusPassword") as String + } + } + } + dependencies { + classpath(libs.plugins.androidAgp) + classpath(libs.plugins.kotlinGradle) + } +} diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 9f5ee0e..12008c5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -32,4 +32,6 @@ kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-cor [plugins] androidApplication = { id = "com.android.application", version.ref = "agp" } -jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } \ No newline at end of file +jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } +androidAgp = { id = "com.android.tools.build:gradle", version.ref = "agp" } +kotlinGradle = { id = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" } diff --git a/persistent-cookie-jar-okhttp/build.gradle.kts b/persistent-cookie-jar-okhttp/build.gradle.kts index e029f51..01247b7 100644 --- a/persistent-cookie-jar-okhttp/build.gradle.kts +++ b/persistent-cookie-jar-okhttp/build.gradle.kts @@ -4,8 +4,8 @@ plugins { `maven-publish` } -group = "com.andreuzaitsev.persistentcookiejar" -version = "1.0.0-alpha01-2024.03.18" +group = "tv.pluto.android.libs" +version = "1.0.2-alpha01-2024.03.18" android { namespace = "com.andreuzaitsev.persistentcookiejar" @@ -29,6 +29,23 @@ android { } } + +dependencies { + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.appcompat) + implementation(libs.androidx.datastore.preferences) + implementation(libs.material) + implementation(libs.okhttp) + testImplementation(libs.mockito) + testImplementation(libs.mockito.kotlin) + testImplementation(libs.robolectric) + testImplementation(libs.junit) + testImplementation(libs.androidx.test.core.ktx) + testImplementation(libs.kotlinx.coroutines.test) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) +} + afterEvaluate { publishing { // These values are provided by the CI environment, args are retrieved from the command line. @@ -48,7 +65,7 @@ afterEvaluate { publications.withType { // Provide artifacts information requited by Maven Central pom { - name.set("persistent-cookie-jar-okhttp Library") + name.set("Custom persistent-cookie-jar-okhttp Library") description.set( "Custom version of persistent-cookie-jar-okhttp Library" ) @@ -68,19 +85,3 @@ afterEvaluate { } } } - -dependencies { - implementation(libs.androidx.core.ktx) - implementation(libs.androidx.appcompat) - implementation(libs.androidx.datastore.preferences) - implementation(libs.material) - implementation(libs.okhttp) - testImplementation(libs.mockito) - testImplementation(libs.mockito.kotlin) - testImplementation(libs.robolectric) - testImplementation(libs.junit) - testImplementation(libs.androidx.test.core.ktx) - testImplementation(libs.kotlinx.coroutines.test) - androidTestImplementation(libs.androidx.junit) - androidTestImplementation(libs.androidx.espresso.core) -} \ No newline at end of file