-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
32 lines (26 loc) · 959 Bytes
/
build.gradle
File metadata and controls
32 lines (26 loc) · 959 Bytes
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
buildscript {
// Read version from project property (passed via -PpluginTestVersion=...) or use default
def releaseVersion = project.findProperty("pluginTestVersion") ?: "0.0.1"
def pluginTestVersion = "${releaseVersion}-alpha.local-test"
repositories {
maven {
// ./gradlew publishAllPublicationsToLocalPluginRepositoryRepository
name = "localPluginRepository"
url = "${gradle.gradleUserHomeDir}/.local-plugin-repository"
}
}
dependencies {
classpath group: "io.github.git-commit-id", name: "git-commit-id-gradle-plugin", version: pluginTestVersion
}
}
plugins {
id 'java'
}
apply plugin: "io.github.git-commit-id.git-commit-id-gradle-plugin"
group = 'io.github.git-commit-id.testing'
version = '0.0.1'
gitCommitId {
verbose.set(true)
}
build.dependsOn tasks.named('gitCommitIdGenerationTask').get()
gitCommitIdGenerationTask.outputs.upToDateWhen { false }