Skip to content

Commit 93ce1f1

Browse files
committed
Update build to latest blowdryer and p2deps.
1 parent 529d462 commit 93ce1f1

File tree

4 files changed

+46
-39
lines changed

4 files changed

+46
-39
lines changed

build.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ apply from: 干.file('base/sonatype.gradle')
1515

1616
subprojects { subProject ->
1717
apply plugin: 'java-library'
18-
apply from: 干.file('base/java8.gradle')
18+
apply from: 干.file('base/java.gradle')
1919
apply from: 干.file('spotless/java.gradle')
2020

2121
ext.maven_name = subProject.name
@@ -47,12 +47,16 @@ subprojects { subProject ->
4747
main = 'com.diffplug.common.swt.os.OS'
4848
}
4949
} else {
50-
apply plugin: 'com.diffplug.eclipse.mavencentral'
5150
String platformCode = project.name.substring('durian-swt.'.length())
5251
String SWT_TO_USE = platformCode.endsWith("x86") ? SWT_VERSION_X86 : SWT_VERSION
53-
eclipseMavenCentral {
54-
release SWT_TO_USE, {
55-
api "org.eclipse.swt.$platformCode"
52+
apply plugin: 'dev.equo.p2deps'
53+
p2deps {
54+
into 'api', {
55+
p2repo "https://download.eclipse.org/eclipse/updates/$SWT_TO_USE/"
56+
install "org.eclipse.swt.$platformCode"
57+
addFilter 'no-platform-filter', {
58+
it.platformAll()
59+
}
5660
}
5761
}
5862
dependencies {

durian-swt/build.gradle

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
apply from: 干.file('base/kotlin.gradle')
22

3-
apply plugin: 'com.diffplug.eclipse.mavencentral'
4-
eclipseMavenCentral {
5-
release SWT_VERSION, {
6-
api 'org.eclipse.swt'
7-
api 'org.eclipse.jface'
8-
useNativesForRunningPlatform()
3+
apply plugin: 'dev.equo.p2deps'
4+
p2deps {
5+
into 'api', {
6+
p2repo "https://download.eclipse.org/eclipse/updates/$SWT_VERSION/"
7+
install 'org.eclipse.swt'
8+
install 'org.eclipse.jface'
99
}
1010
}
1111
dependencies {
@@ -23,12 +23,6 @@ dependencies {
2323
testImplementation "org.assertj:assertj-core:$VER_ASSERTJ"
2424
testImplementation "com.diffplug.durian:durian-debug:$VER_DURIAN_DEBUG"
2525
}
26-
/*
27-
apply plugin: 'com.diffplug.gradle.eclipse.projectdeps'
28-
eclipseProjectDeps {
29-
replaceWithProject('durian-rx')
30-
}
31-
*/
3226
// in java-library mode, durian-swt.os remains as a folder of classes for gradle internally, which the osgi plugin does not like
3327
tasks.named('jar').configure {
3428
dependsOn(':durian-swt.os:jar')

gradle.properties

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ maven_desc=DurianSwt - Reactive utilities and fluent builders for SWT
55
osgi_symbolic_name=com.diffplug.durian.swt
66
osgi_export=com.diffplug.common.swt.*
77

8+
ver_java=8
9+
kotlin_jvmTarget=1.8
10+
811
# Build requirements
9-
VER_JAVA=1.8
1012
VER_FINDBUGS=3.0.1
1113

1214
# Dependencies
@@ -15,8 +17,8 @@ VER_DURIAN_RX=4.0.0
1517
VER_DURIAN_DEBUG=1.0.0
1618
VER_RXJAVA=2.0.0
1719
# SWT Dependencies from P2
18-
SWT_VERSION=4.21.0
19-
SWT_VERSION_X86=4.7.0
20+
SWT_VERSION=4.21
21+
SWT_VERSION_X86=4.7
2022

2123
# Testing
2224
VER_JUNIT=4.12

settings.gradle

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,36 @@
11
pluginManagement {
2-
plugins {
3-
id 'com.diffplug.blowdryer' version '1.5.1'
4-
id 'com.diffplug.blowdryerSetup' version '1.5.1'
5-
id 'com.diffplug.eclipse.mavencentral' version '3.36.0'
6-
id 'com.diffplug.spotless' version '6.4.1'
7-
id 'com.diffplug.spotless-changelog' version '2.4.0'
8-
id 'com.gradle.plugin-publish' version '0.21.0'
9-
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
10-
id 'org.jdrupes.mdoclet' version '1.0.10'
11-
id 'org.jetbrains.kotlin.jvm' version '1.7.10'
2+
repositories {
3+
mavenCentral()
4+
gradlePluginPortal()
125
}
136
}
147
plugins {
15-
id 'com.diffplug.blowdryerSetup'
16-
id 'com.diffplug.eclipse.mavencentral' apply false
17-
id 'com.diffplug.spotless' apply false
18-
id 'com.diffplug.spotless-changelog' apply false
19-
id 'com.gradle.plugin-publish' apply false
20-
id 'io.github.gradle-nexus.publish-plugin' apply false
21-
id 'org.jdrupes.mdoclet' apply false
22-
id 'org.jetbrains.kotlin.jvm' apply false
8+
// https://github.com/diffplug/blowdryer/blob/main/CHANGELOG.md
9+
id 'com.diffplug.blowdryerSetup' version '1.7.0'
10+
// https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md
11+
id 'com.diffplug.spotless' version '6.16.0' apply false
12+
// https://github.com/diffplug/spotless-changelog/blob/main/CHANGELOG.md
13+
id 'com.diffplug.spotless-changelog' version '3.0.1' apply false
14+
// https://plugins.gradle.org/plugin/com.gradle.plugin-publish
15+
id 'com.gradle.plugin-publish' version '1.1.0' apply false
16+
// https://github.com/equodev/equo-ide/blob/main/plugin-gradle/CHANGELOG.md
17+
id 'dev.equo.ide' version '0.16.0' apply false
18+
// https://github.com/gradle-nexus/publish-plugin/releases
19+
id 'io.github.gradle-nexus.publish-plugin' version '1.2.0' apply false
20+
// https://plugins.gradle.org/plugin/org.jetbrains.dokka
21+
id 'org.jetbrains.dokka' version '1.8.10' apply false
22+
// https://plugins.gradle.org/plugin/org.jetbrains.kotlin.jvm
23+
id 'org.jetbrains.kotlin.jvm' version '1.8.20' apply false
24+
// https://plugins.gradle.org/plugin/org.jetbrains.kotlin.plugin.serialization
25+
id 'org.jetbrains.kotlin.plugin.serialization' version '1.8.20' apply false
2326
}
2427
blowdryerSetup {
25-
github 'diffplug/blowdryer-diffplug', 'tag', '5.2.1'
28+
github 'diffplug/blowdryer-diffplug', 'tag', '7.0.2'
2629
//devLocal '../blowdryer-diffplug'
30+
setPluginsBlockTo {
31+
it.file 'plugin.versions'
32+
it.file 'plugin-kotlin.versions'
33+
}
2734
}
2835

2936
rootProject.name = 'durian-swt-root'

0 commit comments

Comments
 (0)