forked from lessthanoptimal/gversion-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
45 lines (37 loc) · 1.14 KB
/
build.gradle
File metadata and controls
45 lines (37 loc) · 1.14 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
plugins {
id 'groovy-gradle-plugin'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '1.3.1'
}
group = 'com.peterabeles.gversion'
version = '1.10.4-SNAPSHOT'
repositories {
mavenCentral()
mavenLocal()
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
compileJava {
// Output byte code compatible with Java 8
options.compilerArgs += ["--release", "8"]
}
gradlePlugin {
website = 'https://github.com/lessthanoptimal/gversion-plugin'
vcsUrl = 'https://github.com/lessthanoptimal/gversion-plugin'
plugins {
gversionPlugin {
id = 'com.peterabeles.gversion'
displayName = 'GVersion Plugin'
description = 'Auto-generates project version files from Git and Gradle at compile time'
implementationClass = 'com.peterabeles.GVersion'
tags.set(['version', 'git', 'gradle','auto generate','auto code'])
}
}
}
wrapper {
distributionType = Wrapper.DistributionType.BIN
gradleVersion = '8.12.1'
}