64 lines
1.4 KiB
Groovy
64 lines
1.4 KiB
Groovy
buildscript {
|
|
ext {
|
|
kotlin_version = '1.3.72'
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
group 'com.synebula'
|
|
version version
|
|
}
|
|
|
|
subprojects {
|
|
ext {
|
|
version '0.7.0'
|
|
spring_version = "2.3.0.RELEASE"
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenLocal()
|
|
maven { url 'http://maven.aliyuMongoRepositoryn.com/nexus/content/groups/public/' }
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
|
|
mavenCentral()
|
|
}
|
|
|
|
apply plugin: 'idea'
|
|
apply plugin: 'java'
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'maven'
|
|
apply plugin: 'maven-publish'
|
|
|
|
dependencies {
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
}
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
}
|