mirror of
https://github.com/tribufu/tribufu-java
synced 2026-05-06 06:47:27 +00:00
Migrate to scala lib
This commit is contained in:
parent
90aa04c14a
commit
081a512a08
28 changed files with 203 additions and 1056 deletions
49
build.gradle
49
build.gradle
|
|
@ -1,27 +1,32 @@
|
|||
buildscript {
|
||||
ext.kotlin_version = "1.4.31"
|
||||
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath "com.android.tools.build:gradle:4.1.2"
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
plugins {
|
||||
id "scala"
|
||||
id "java-library"
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
group "com.tribufu.sdk"
|
||||
version "1.0.0"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url "https://mvn.tribufu.com/snapshots" }
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
dependencies {
|
||||
// Use Scala 2.13 in our library project
|
||||
implementation "org.scala-lang:scala-library:2.13.9"
|
||||
|
||||
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
|
||||
implementation "com.google.guava:guava:31.1-jre"
|
||||
|
||||
// Use Scalatest for testing our library
|
||||
testImplementation "junit:junit:4.13.2"
|
||||
testImplementation "org.scalatest:scalatest_2.13:3.2.13"
|
||||
testImplementation "org.scalatestplus:junit-4-13_2.13:3.2.2.0"
|
||||
|
||||
// Need scala-xml at test runtime
|
||||
testRuntimeOnly "org.scala-lang.modules:scala-xml_2.13:1.2.0"
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue