mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-11 11:14:21 +01:00
Add dependencies and related licenses
This commit is contained in:
@@ -1,16 +1,28 @@
|
||||
import net.ltgt.gradle.errorprone.CheckSeverity
|
||||
import net.ltgt.gradle.errorprone.errorprone
|
||||
|
||||
plugins {
|
||||
java
|
||||
application
|
||||
id("net.ltgt.errorprone") version "4.1.0"
|
||||
}
|
||||
|
||||
group = "org.github.tursodatabase"
|
||||
version = "0.0.1-SNAPSHOT"
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
errorprone("com.uber.nullaway:nullaway:0.12.3")
|
||||
errorprone("com.google.errorprone:error_prone_core:2.36.0")
|
||||
|
||||
testImplementation(platform("org.junit:junit-bom:5.10.0"))
|
||||
testImplementation("org.junit.jupiter:junit-jupiter")
|
||||
testImplementation("org.assertj:assertj-core:3.27.0")
|
||||
@@ -30,5 +42,24 @@ application {
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
// In order to find rust built file under resources, we need to set it as system path
|
||||
systemProperty("java.library.path", "${System.getProperty("java.library.path")}:$projectDir/src/test/resources/limbo/debug")
|
||||
systemProperty(
|
||||
"java.library.path",
|
||||
"${System.getProperty("java.library.path")}:$projectDir/src/test/resources/limbo/debug"
|
||||
)
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile> {
|
||||
options.errorprone {
|
||||
check("NullAway", CheckSeverity.ERROR)
|
||||
option("NullAway:AnnotatedPackages", "org.github.tursodatabase")
|
||||
option(
|
||||
"NullAway:CustomNullableAnnotations",
|
||||
"org.github.tursodatabase.annotations.Nullable,org.github.tursodatabase.annotations.SkipNullableCheck"
|
||||
)
|
||||
}
|
||||
if (name.lowercase().contains("test")) {
|
||||
options.errorprone {
|
||||
disable("NullAway")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user