Skip to content

Commit

Permalink
wip: trying to stop using dependencies.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
ttypic committed Sep 24, 2024
1 parent d1e7ba0 commit ec95bbe
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 11 deletions.
26 changes: 15 additions & 11 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
buildscript {
repositories {
mavenCentral()
mavenLocal()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
}
plugins {
id 'com.android.library'
}

apply plugin: 'com.android.library'
apply from: '../common.gradle'

ext {
Expand Down Expand Up @@ -84,9 +76,21 @@ tasks.withType(com.android.build.gradle.internal.tasks.AndroidTestTask) { task -
}
}

apply from: '../dependencies.gradle'
dependencies {
implementation 'org.msgpack:msgpack-core:0.8.11'
implementation 'com.google.code.gson:gson:2.9.0'
implementation 'com.davidehrmann.vcdiff:vcdiff-core:0.1.1'
implementation 'com.google.firebase:firebase-messaging:22.0.0'
implementation project(':network-client-core')
implementation project(':network-client-default')
testImplementation 'org.hamcrest:hamcrest-all:1.3'
testImplementation 'junit:junit:4.12'
testImplementation 'org.nanohttpd:nanohttpd:2.3.0'
testImplementation 'org.nanohttpd:nanohttpd-nanolets:2.3.0'
testImplementation 'org.nanohttpd:nanohttpd-websocket:2.3.0'
testImplementation 'org.mockito:mockito-core:1.10.19'
testImplementation 'net.jodah:concurrentunit:0.4.2'
testImplementation 'org.slf4j:slf4j-simple:1.7.30'
androidTestImplementation 'com.android.support.test:runner:0.5'
androidTestImplementation 'com.android.support.test:rules:0.5'
androidTestImplementation 'com.crittercism.dexmaker:dexmaker:1.4'
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
plugins {
id 'io.codearte.nexus-staging' version '0.21.1'
id 'io.freefair.lombok' version '5.0.1' apply false
id 'com.android.library' version '4.2.2' apply false
}

repositories {
Expand Down
6 changes: 6 additions & 0 deletions network-client-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ plugins {
id("io.freefair.lombok")
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.compileJava {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
Expand All @@ -11,3 +16,4 @@ tasks.compileJava {
repositories {
mavenCentral()
}

8 changes: 8 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
pluginManagement {
repositories {
google()
gradlePluginPortal()
mavenCentral()
}
}

rootProject.name = 'ably-java'
include 'java',
'android',
Expand Down

0 comments on commit ec95bbe

Please sign in to comment.