This repository was archived by the owner on Dec 11, 2025. It is now read-only.
forked from nemerosa/versioning
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
82 lines (74 loc) · 2.41 KB
/
build.gradle
File metadata and controls
82 lines (74 loc) · 2.41 KB
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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.ajoberstar.grgit:grgit-gradle:${grgitGradleVersion}"
}
}
plugins {
id 'groovy'
id 'java-library'
id "com.jfrog.artifactory" version "${artifactoryPluginVersion}" apply false
id "org.ajoberstar.grgit" version "${grgitGradleVersion}" apply false
id "maven-publish"
id 'java-gradle-plugin'
}
repositories {
maven {
url = uri("https://plugins.gradle.org/m2/")
}
mavenCentral()
}
dependencies {
implementation gradleApi()
implementation localGroovy()
implementation 'org.ajoberstar.grgit:grgit-core:4.1.1'
implementation "org.eclipse.jgit:org.eclipse.jgit.ui:${jgitVersion}"
implementation "org.eclipse.jgit:org.eclipse.jgit:${jgitVersion}"
implementation 'org.tmatesoft.svnkit:svnkit:1.10.6'
testImplementation "junit:junit:4.13.2"
testImplementation "commons-lang:commons-lang:2.6"
testImplementation "commons-io:commons-io:2.11.0"
}
group = 'org.labkey.build'
project.version = "1.1.4-SNAPSHOT"
gradlePlugin {
plugins {
versioning {
id = "org.labkey.build"
displayName = "Versioning plugin for Gradle"
description = "Gradle plug-in that computes version information from the SCM"
implementationClass = "net.nemerosa.versioning.VersioningPlugin"
}
}
}
publishing {
repositories {
if (project.version.contains("SNAPSHOT")) {
maven {
url = "${artifactory_contextUrl}/plugins-snapshot-local"
credentials {
username = artifactory_user
password = artifactory_password
}
authentication {
basic(BasicAuthentication)
// enable preemptive authentication to get around https://www.jfrog.com/jira/browse/RTFACT-4434
}
}
} else {
maven {
url = "${artifactory_contextUrl}/plugins-release"
credentials {
username = artifactory_user
password = artifactory_password
}
authentication {
basic(BasicAuthentication)
// enable preemptive authentication to get around https://www.jfrog.com/jira/browse/RTFACT-4434
}
}
}
}
}