diff --git a/.github/workflows/publish_release.yaml b/.github/workflows/publish_release.yaml index de88844..8c05f50 100644 --- a/.github/workflows/publish_release.yaml +++ b/.github/workflows/publish_release.yaml @@ -23,4 +23,4 @@ jobs: run: ./gradlew persistent-cookie-jar-okhttp:test - name: Publish Library - run: ./gradlew --stacktrace -PnexusUserName=$NEXUS_USERID -PnexusUserPassword=$NEXUS_PASSWORD clean persistent-cookie-jar-okhttp:assembleRelease publish + run: ./gradlew --stacktrace -PnexusURL=$NEXUS_URL -PnexusUserName=$NEXUS_USERID -PnexusUserPassword=$NEXUS_PASSWORD clean persistent-cookie-jar-okhttp:assembleRelease publish diff --git a/build.gradle.kts b/build.gradle.kts index e151aed..a3b992e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,4 @@ -buildscript { - dependencies { - classpath(libs.plugins.androidAgp) - classpath(libs.plugins.kotlinGradle) - } -} +plugins { + alias(libs.plugins.androidLib) apply false + alias(libs.plugins.jetbrainsKotlinAndroid) apply false +} \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 12008c5..2aa97f0 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -32,6 +32,5 @@ kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-cor [plugins] androidApplication = { id = "com.android.application", version.ref = "agp" } +androidLib = { id = "com.android.library", version.ref = "agp" } 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/settings.gradle.kts b/settings.gradle.kts index 97080a5..7dc96d6 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -2,7 +2,7 @@ pluginManagement { java.util.Properties().apply { try { - File("${settingsDir.parent}/gradle.properties").reader().use { load(it) } + File("gradle.properties").reader().use { load(it) } } catch (error: Exception) { //do Nothing }