chore: finish porting build .kts to .gradle

This commit is contained in:
2026-05-13 20:19:52 +02:00
parent 8ef0cebfa9
commit e65a033704
6 changed files with 46 additions and 45 deletions

3
build.gradle Normal file
View File

@@ -0,0 +1,3 @@
plugins {
id 'com.android.library' version '8.7.2' apply false
}

View File

@@ -1,3 +0,0 @@
plugins {
id("com.android.library") version "8.7.2" apply false
}

View File

@@ -1,4 +1,3 @@
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
android.useAndroidX=true android.useAndroidX=true
kotlin.code.style=official
android.nonTransitiveRClass=true android.nonTransitiveRClass=true

41
jukebox/build.gradle Normal file
View File

@@ -0,0 +1,41 @@
plugins {
id 'com.android.library'
}
android {
namespace 'at.lockstep.jukebox'
compileSdk 35
defaultConfig {
minSdk 24
consumerProguardFiles 'consumer-rules.pro'
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}
dependencies {
def room = '2.6.1'
implementation "androidx.room:room-runtime:$room"
implementation 'androidx.lifecycle:lifecycle-livedata:2.8.7'
annotationProcessor "androidx.room:room-compiler:$room"
testImplementation "androidx.room:room-testing:$room"
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.retrofit2:retrofit:2.11.0'
implementation 'com.squareup.retrofit2:converter-gson:2.11.0'
implementation 'com.google.code.gson:gson:2.11.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.robolectric:robolectric:4.14.1'
testImplementation 'androidx.test:core:1.6.1'
}

View File

@@ -1,39 +0,0 @@
plugins {
id("com.android.library")
}
android {
namespace = "at.lockstep.jukebox"
compileSdk = 35
defaultConfig {
minSdk = 24
consumerProguardFiles("consumer-rules.pro")
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
testOptions {
unitTests.isIncludeAndroidResources = true
}
}
dependencies {
val room = "2.6.1"
implementation("androidx.room:room-runtime:$room")
implementation("androidx.lifecycle:lifecycle-livedata:2.8.7")
annotationProcessor("androidx.room:room-compiler:$room")
testImplementation("androidx.room:room-testing:$room")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
implementation("com.squareup.retrofit2:retrofit:2.11.0")
implementation("com.squareup.retrofit2:converter-gson:2.11.0")
implementation("com.google.code.gson:gson:2.11.0")
testImplementation("junit:junit:4.13.2")
testImplementation("org.robolectric:robolectric:4.14.1")
testImplementation("androidx.test:core:1.6.1")
}

View File

@@ -14,5 +14,5 @@ dependencyResolutionManagement {
} }
} }
rootProject.name = "lockstep-jukebox" rootProject.name = 'lockstep-jukebox'
include(":jukebox") include ':jukebox'