chore: migrate build script from groovy to kts

- using SweetDependency, SweetProperty
- using new maven publish function
- update gradle and dependencies
This commit is contained in:
2023-09-22 17:00:04 +08:00
parent 7f15ad57d9
commit fd79c4ef0d
11 changed files with 232 additions and 271 deletions

View File

@@ -0,0 +1,52 @@
preferences:
autowire-on-sync-mode: UPDATE_OPTIONAL_DEPENDENCIES
repositories-mode: FAIL_ON_PROJECT_REPOS
repositories:
gradle-plugin-portal:
scope: PLUGINS
google:
maven-central:
plugins:
org.jetbrains.kotlin.jvm:
alias: kotlin-jvm
version: 1.9.10
org.jetbrains.kotlin.android:
alias: kotlin-android
version-ref: kotlin-jvm
org.jetbrains.compose:
alias: kotlin-compose
version: 1.5.1
com.android.application:
alias: android-application
version: 8.1.1
com.vanniktech.maven.publish:
alias: maven-publish
version: 0.25.3
libraries:
org.jetbrains.compose.material3:
material3-desktop:
version: 1.5.1
androidx.core:
core-ktx:
version: 1.10.0
androidx.appcompat:
appcompat:
version: 1.6.1
com.google.android.material:
material:
version: 1.8.0
androidx.constraintlayout:
constraintlayout:
version: 2.1.4
androidx.test.ext:
junit:
version: 1.1.5
androidx.test.espresso:
espresso-core:
version: 3.5.1
junit:
junit:
version: 4.13.2

View File

@@ -1,6 +1,5 @@
#Sat Jan 21 10:47:38 CST 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStoreBase=GRADLE_USER_HOME