-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathbuild.gradle
85 lines (69 loc) · 2.07 KB
/
build.gradle
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
buildscript {
ext.xodusVersion = '3.0.134'
ext.kotlinVersion = '1.9.21'
ext.ktorVersion = '2.3.11'
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
plugins {
id 'java'
id 'idea' // ide sync fine tuning
id 'com.github.johnrengelman.shadow'
}
apply plugin: 'kotlin'
ext.globalArtifactsBuildDir = layout.buildDirectory.get().asFile
allprojects {
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: 'maven-publish'
group = 'org.jetbrains.xodus'
version = '3.0.' + ((project.hasProperty("teamcity")) ? project.teamcity["build.number"] : '999')
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url 'https://packages.jetbrains.team/maven/p/xodus/xodus-daily' }
// necessary for dokka 1.4.30
maven { url "https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven" }
maven { url 'https://packages.jetbrains.team/maven/p/xodus/orientdb-daily' }
}
idea {
module {
downloadSources = true
}
}
test {
minHeapSize = '512m'
maxHeapSize = '512m'
testLogging {
showStandardStreams = true
exceptionFormat = 'full'
}
outputs.upToDateWhen { false }
}
tasks.register('sourceJar', Jar) {
archiveClassifier = 'sources'
duplicatesStrategy DuplicatesStrategy.EXCLUDE
includeEmptyDirs false
from project.sourceSets.main.java
from project.sourceSets.main.kotlin
}
configurations.configureEach {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'org.slf4j') {
details.useVersion "1.7.25"
}
}
}
}
defaultTasks 'clean build'
repositories {
mavenCentral()
}
apply from: 'publishing.gradle'