Skip to content

Commit 726b196

Browse files
committed
Blowdryer-ed the publishing.
1 parent b10427c commit 726b196

File tree

3 files changed

+81
-46
lines changed

3 files changed

+81
-46
lines changed

build.gradle

Lines changed: 20 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,28 @@ allprojects {
1010
apply from: 干.file('base/changelog.gradle')
1111
}
1212
apply from: 干.file('spotless/freshmark.gradle')
13+
apply from: 干.file('helper/javadoc-markdown.gradle')
1314

1415
subprojects { subProject ->
1516
apply from: 干.file('base/java8.gradle')
1617

18+
ext.maven_name = subProject.name
19+
ext.javadoc_links = [
20+
"https://javadoc.io/doc/com.diffplug.durian/durian-core/${VER_DURIAN}",
21+
"https://javadoc.io/doc/com.diffplug.durian/durian-collect/${VER_DURIAN}",
22+
"https://javadoc.io/doc/com.diffplug.durian/durian-concurrent/${VER_DURIAN}",
23+
"https://javadoc.io/doc/com.diffplug.durian/durian-debug/${VER_DURIAN_DEBUG}",
24+
"https://javadoc.io/doc/com.diffplug.durian/durian-rx/${VER_DURIAN_RX}",
25+
"https://javadoc.io/doc/io.reactivex.rxjava2/rxjava/${VER_RXJAVA}",
26+
'https://docs.oracle.com/javase/8/docs/api/'
27+
].join(' ')
28+
29+
apply from: 干.file('base/maven.gradle')
30+
apply from: 干.file('base/bintray.gradle')
31+
javadoc {
32+
options.linksOffline 'https://help.eclipse.org/2019-12/topic/org.eclipse.platform.doc.isv/reference/api/', rootProject.file('gradle/javadoc-eclipse').absolutePath
33+
}
34+
1735
if (subProject.name == 'durian-swt') {
1836
// configured there
1937
} else if (subProject.name == 'durian-swt.os') {
@@ -59,47 +77,9 @@ subprojects { subProject ->
5977
'Bundle-SymbolicName': 'com.diffplug.durian.swt',
6078
'Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8',
6179
'Bundle-Vendor': 'DiffPlug',
62-
'Bundle-DocURL': "https://github.com/${project.org}/${project.name}",
63-
'Bundle-License': "https://github.com/${project.org}/${project.name}/blob/v${project.version}/LICENSE",
80+
'Bundle-DocURL': "https://github.com/diffplug/durian-swt",
81+
'Bundle-License': "https://github.com/diffplug/durian-swt/blob/v${project.version}/LICENSE",
6482
'-removeheaders': 'Bnd-LastModified,Bundle-Name,Created-By,Tool',
6583
'-nodefaultversion': 'true'
6684
)
67-
68-
///////////
69-
// MAVEN //
70-
///////////
71-
apply plugin: 'maven-publish'
72-
group='com.diffplug.durian'
73-
74-
task sourcesJar(type: Jar) {
75-
classifier = 'sources'
76-
from sourceSets.main.allJava
77-
}
78-
79-
def verSnapshot = { it.endsWith('-SNAPSHOT') ? 'snapshot' : it }
80-
// Where it's possible to name parameters and methods clearly enough
81-
// that javadoc is not necessary, why make the code bigger?
82-
//
83-
// Thus, no javadoc warnings.
84-
def makeLink = { url, text -> "<a href=\"${url}\" style=\"text-transform: none;\">${text}</a>" }
85-
def javadocInfo = '<h2>' + makeLink("https://github.com/${org}/${name}", "${group}:${name}:${version}") +
86-
' by ' + makeLink('http://www.diffplug.com', 'DiffPlug') + '</h2>'
87-
javadoc {
88-
options.addStringOption('Xdoclint:none', '-quiet')
89-
options.header javadocInfo
90-
options.footer javadocInfo
91-
options.links('https://diffplug.github.io/durian/javadoc/durian-core/' + verSnapshot(VER_DURIAN) + '/')
92-
options.links('https://diffplug.github.io/durian/javadoc/durian-collect/' + verSnapshot(VER_DURIAN) + '/')
93-
options.links('https://diffplug.github.io/durian/javadoc/durian-concurrent/' + verSnapshot(VER_DURIAN) + '/')
94-
options.links('https://diffplug.github.io/durian-debug/javadoc/' + verSnapshot(VER_DURIAN_DEBUG) + '/')
95-
options.links('https://diffplug.github.io/durian-rx/javadoc/' + verSnapshot(VER_DURIAN_RX) + '/')
96-
options.links('https://docs.oracle.com/javase/8/docs/api/')
97-
options.links('http://reactivex.io/RxJava/javadoc/')
98-
options.links('http://help.eclipse.org/luna/nftopic/org.eclipse.platform.doc.isv/reference/api/')
99-
}
100-
101-
task javadocJar(type: Jar, dependsOn: javadoc) {
102-
classifier = 'javadoc'
103-
from javadoc.destinationDir
104-
}
10585
}

gradle.properties

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
stable=3.3.0
2-
version=3.4.0-SNAPSHOT
3-
name=durian-swt
4-
#group=com.diffplug.durian (moved to build.gradle to workaround gradle classpath problems)
5-
description=DurianSwt - Reactive utilities and fluent builders for SWT
6-
org=diffplug
1+
git_url=https://github.com/diffplug/durian-swt
2+
license=apache
3+
maven_group=com.diffplug.durian
4+
maven_desc=DurianSwt - Reactive utilities and fluent builders for SWT
75

86
# Build requirements
97
VER_JAVA=1.8

gradle/javadoc-eclipse/package-list

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
org.eclipse.swt
2+
org.eclipse.swt.accessibility
3+
org.eclipse.swt.awt
4+
org.eclipse.swt.browser
5+
org.eclipse.swt.custom
6+
org.eclipse.swt.dnd
7+
org.eclipse.swt.events
8+
org.eclipse.swt.graphics
9+
org.eclipse.swt.internal
10+
org.eclipse.swt.layout
11+
org.eclipse.swt.ole.win32
12+
org.eclipse.swt.opengl
13+
org.eclipse.swt.printing
14+
org.eclipse.swt.program
15+
org.eclipse.swt.widgets
16+
org.eclipse.jface.action
17+
org.eclipse.jface.bindings
18+
org.eclipse.jface.bindings.keys
19+
org.eclipse.jface.bindings.keys.formatting
20+
org.eclipse.jface.commands
21+
org.eclipse.jface.contentassist
22+
org.eclipse.jface.contexts
23+
org.eclipse.jface.databinding.dialog
24+
org.eclipse.jface.databinding.fieldassist
25+
org.eclipse.jface.databinding.preference
26+
org.eclipse.jface.databinding.swt
27+
org.eclipse.jface.databinding.util
28+
org.eclipse.jface.databinding.viewers
29+
org.eclipse.jface.databinding.wizard
30+
org.eclipse.jface.dialogs
31+
org.eclipse.jface.fieldassist
32+
org.eclipse.jface.layout
33+
org.eclipse.jface.menus
34+
org.eclipse.jface.operation
35+
org.eclipse.jface.preference
36+
org.eclipse.jface.resource
37+
org.eclipse.jface.text
38+
org.eclipse.jface.text.contentassist
39+
org.eclipse.jface.text.formatter
40+
org.eclipse.jface.text.hyperlink
41+
org.eclipse.jface.text.information
42+
org.eclipse.jface.text.link
43+
org.eclipse.jface.text.presentation
44+
org.eclipse.jface.text.projection
45+
org.eclipse.jface.text.quickassist
46+
org.eclipse.jface.text.reconciler
47+
org.eclipse.jface.text.revisions
48+
org.eclipse.jface.text.rules
49+
org.eclipse.jface.text.source
50+
org.eclipse.jface.text.source.projection
51+
org.eclipse.jface.text.templates
52+
org.eclipse.jface.text.templates.persistence
53+
org.eclipse.jface.util
54+
org.eclipse.jface.viewers
55+
org.eclipse.jface.viewers.deferred
56+
org.eclipse.jface.window
57+
org.eclipse.jface.wizard

0 commit comments

Comments
 (0)