-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
116 lines (99 loc) · 2.66 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import java.text.SimpleDateFormat
plugins {
id 'groovy'
id 'groovy-gradle-plugin'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '1.2.1'
id 'com.github.hierynomus.license' version '0.16.1'
id 'org.sonarqube' version '4.4.1.3373'
id 'org.ajoberstar.grgit' version '5.0.0-rc.3'
}
repositories {
mavenCentral()
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = '8.6'
}
group = 'org.platops.gradle.plugins.qt'
version = '1.4.0-SNAPSHOT'
description = 'Gradle QT plugin for framework specific tasks integration'
String vcsBaseUrl = "https://github.com/axmetishe"
String vcsRepoUrl = "${vcsBaseUrl}/${project.name}.git"
license {
ignoreFailures = true
header = file('LICENSE.txt')
includes(['**/*.groovy'])
}
sonarqube {
properties {
property "sonar.projectKey", "axmetishe_gradle-qt-plugin"
}
}
jar {
manifest {
attributes([
'URL': vcsRepoUrl,
'Branch': grgit.branch.current().getName(),
'Revision' : grgit.head().abbreviatedId,
], "SCM")
attributes([
'Version': project.version,
'Timestamp': new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
'BuiltBy': "Gradle ${gradle.gradleVersion}",
'JDK': "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
'OS': "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}",
], "Build")
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
gradlePlugin {
website = "${vcsBaseUrl}/${project.name}"
vcsUrl = vcsRepoUrl
plugins {
qtPlugin {
id = 'org.platops.gradle.plugins.qt.gradle-qt-plugin'
displayName = 'Gradle QT Plugin'
implementationClass = 'org.platops.gradle.plugins.qt.QTPlugin'
description = project.description
tags.set(['qt', 'qrc', 'moc', 'uic', 'rcc', 'gradle-native', 'c', 'cpp'])
}
}
}
publishing {
repositories {
mavenLocal()
}
publications {
pluginMaven(MavenPublication) {
pom {
name = project.name
description = project.description
url = "${vcsBaseUrl}/${project.name}"
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'axmetishe'
name = 'Evgeny Akhmetkhanov'
email = '[email protected]'
}
}
scm {
url = "${vcsBaseUrl}/${project.name}"
}
}
}
}
}
dependencies {
api gradleApi()
}