-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
52 lines (49 loc) · 1.77 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
///////////////////////////////////////////////////////////////////////////////
// GRADLE CONFIGURATION
///////////////////////////////////////////////////////////////////////////////
plugins {
id("com.diffplug.spotless") version "6.25.0"
}
buildscript {
val kotlinVersion: String by project
repositories {
mavenLocal()
mavenCentral()
google()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("com.android.tools.build:gradle:7.4.2")
classpath("javax.xml.bind:jaxb-api:2.3.1")
classpath("com.sun.xml.bind:jaxb-impl:2.3.9")
classpath("org.eclipse.keyple:keyple-gradle:0.2.+") { isChanging = true }
}
}
///////////////////////////////////////////////////////////////////////////////
// APP CONFIGURATION
///////////////////////////////////////////////////////////////////////////////
allprojects {
group = "org.calypsonet.keyple"
repositories {
mavenLocal()
mavenCentral()
maven(url = "https://oss.sonatype.org/content/repositories/releases")
maven(url = "https://s01.oss.sonatype.org/content/repositories/releases")
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots")
maven(url = "https://nexus.coppernic.fr/repository/libs-release")
google()
}
}
///////////////////////////////////////////////////////////////////////////////
// TASKS CONFIGURATION
///////////////////////////////////////////////////////////////////////////////
tasks {
spotless {
kotlin {
target("**/*.kt")
ktfmt()
licenseHeaderFile("${project.rootDir}/LICENSE_HEADER")
}
}
}