Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup maven repos #116

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions app-native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,7 @@ android {

}

repositories {
// needed for using sdk-native from countly maven repo
mavenCentral()
}

// sdk and sdk-native are pulled from submodules of the project.
// sdk and sdk-native are pulled from submodules of the project.
// If you are running app independently, you may pull their latest version from our maven repo using the commented lines.
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
Expand All @@ -83,7 +78,6 @@ buildscript {
classpath group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.14.1'
// classpath files('../upload-plugin/build/libs/upload-plugin.jar')
//classpath group: 'ly.count.android', 'name': 'sdk-plugin', 'version': '20.11.8'

}
}

Expand Down
23 changes: 0 additions & 23 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,6 @@ apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

/*
//for automatic symbol upload
apply plugin: ly.count.android.plugins.UploadSymbolsPlugin

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'ly.count.android', 'name': 'sdk-plugin', 'version': '20.11.8'
}
}
*/

repositories {
mavenCentral()

//required for huawei push
maven {
url "https://developer.huawei.com/repo/"
}
}

android {
compileSdk 34
namespace 'ly.count.android.demo'
Expand Down
14 changes: 5 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.8.0'
repositories {
maven {
url 'https://developer.huawei.com/repo/'
}
jcenter()
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'

classpath 'com.github.dcendents:android-maven-plugin:1.2'
classpath 'com.google.gms:google-services:4.3.15'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.huawei.agconnect:agcp:1.3.1.300'
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.5.3"
}
}

Expand All @@ -25,7 +17,11 @@ allprojects {
options.addStringOption('Xdoclint:none', '-quiet')
}
repositories {
jcenter()
google()
mavenCentral()
maven {
url 'https://dl.bintray.com/countly/maven'
}
}
}
13 changes: 6 additions & 7 deletions sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ apply plugin: 'com.android.library'
apply plugin: "com.vanniktech.maven.publish" //for publishing

buildscript {
repositories {
mavenCentral()
}
dependencies {
//classpath "com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0" //test coverage reports
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.21.0' //for publishing
}
repositories {
jcenter()
}
dependencies {
classpath 'com.novoda:bintray-release:0.9.2'
}
}

android {
Expand Down
27 changes: 15 additions & 12 deletions upload-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.21.0' //for publishing
}
dependencies {
classpath 'com.novoda:bintray-release:0.9.2'
}
}

plugins {
Expand All @@ -21,14 +18,20 @@ gradlePlugin {
}
}

repositories {
mavenCentral()
dependencies {
implementation gradleApi()
implementation localGroovy()
implementation 'com.squareup.okhttp3:okhttp:3.14.1'
}

dependencies {
implementation gradleApi()
implementation localGroovy()
implementation 'com.squareup.okhttp3:okhttp:3.14.9'
publish {
userOrg = 'countly'
groupId = 'ly.count.android'
artifactId = 'sdk-plugin'
publishVersion = '20.04.3'
desc = 'Gradle plugin for automatic upload of symbol files'
website = 'https://github.com/Countly/countly-sdk-android'
autoPublish = false
}

apply plugin: "com.vanniktech.maven.publish"