-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
47 lines (35 loc) · 1.64 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
import ru.yoomoney.gradle.plugins.backend.build.JavaExtension
import ru.yoomoney.gradle.plugins.javapublishing.JavaArtifactPublishExtension
buildscript {
apply from: 'project.gradle', to: buildscript
}
apply plugin: "ru.yoomoney.gradle.plugins.library-project-plugin"
apply from: 'dependencies.gradle'
artifactId = 'db-queue-scheduler'
def rootJavaExtension = project.extensions.getByType(JavaExtension.class)
def rootJavaArtifactPublishExtension = project.extensions.getByType(JavaArtifactPublishExtension.class)
subprojects {
apply plugin: 'ru.yoomoney.gradle.plugins.java-plugin'
apply plugin: 'ru.yoomoney.gradle.plugins.java-artifact-publish-plugin'
javaModule {
repositories = rootJavaExtension.repositories
snapshotsRepositories = rootJavaExtension.snapshotsRepositories
}
javaArtifactPublishSettings {
artifactId = "${project.name}"
groupId = 'ru.yoomoney.tech'
nexusUser = rootJavaArtifactPublishExtension.nexusUser
nexusPassword = rootJavaArtifactPublishExtension.nexusPassword
snapshotRepository = rootJavaArtifactPublishExtension.snapshotRepository
releaseRepository = rootJavaArtifactPublishExtension.releaseRepository
signing = rootJavaArtifactPublishExtension.signing
staging = rootJavaArtifactPublishExtension.staging
publicationAdditionalInfo = rootJavaArtifactPublishExtension.publicationAdditionalInfo
}
test {
useJUnitPlatform()
enabled = true
}
rootProject.tasks.getByName('build').dependsOn(tasks.getByName('build'))
rootProject.tasks.getByName('publish').dependsOn(tasks.getByName('publish'))
}