-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (80 loc) · 1.94 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
wrapper {
gradleVersion = '7.6.2'
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'com.gradle.plugin-publish'
group = pGroup
version = pVersion
description = pDescription
sourceCompatibility = 1.8
targetCompatibility = 1.8
if (project.hasProperty("topobyte")) {
apply from: 'file:///' + System.getProperty("user.home") \
+ '/.gradle/topobyte.gradle'
}
buildscript {
dependencies {
classpath 'junit:junit:4.12'
classpath 'com.gradle.publish:plugin-publish-plugin:0.9.9'
}
repositories {
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
}
repositories {
mavenCentral()
}
dependencies {
implementation gradleApi()
implementation localGroovy()
implementation 'commons-io:commons-io:2.6'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
pluginBundle {
website = 'http://www.topobyte.de'
vcsUrl = 'https://github.com/sebkur/gradle-eclipse-pde-plugin'
description = 'Topobyte Eclipse PDE plugin'
plugins {
eclipsePdePlugin {
id = 'de.topobyte.eclipse-pde-gradle-plugin'
displayName = 'Topobyte Eclipse PDE plugin'
}
}
}
artifacts {
archives sourcesJar
}
def pomInfo = new XmlSlurper().parse(new File('info.pom'));
publishing {
repositories {
maven {
url = maven_path_topobyte_temp
}
}
publications {
maven(MavenPublication) {
from components.java
pom {
name = "$pomInfo.name"
description = "$pomInfo.description"
url = "$pomInfo.url"
licenses {
license {
name = "$pomInfo.licenseName"
url = "$pomInfo.licenseUrl"
distribution = "$pomInfo.licenseDistribution"
}
}
}
}
}
}