Skip to content

Commit 7005e67

Browse files
committed
Update references to new update site
- Fixes #140
1 parent 67fa22b commit 7005e67

File tree

4 files changed

+22
-19
lines changed

4 files changed

+22
-19
lines changed

.ci/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function release_build() {
107107
END_LINE=$((END_LINE - 1))
108108

109109
RELEASE_BODY="A new PMD for Eclipse plugin version has been released.
110-
It is available via the update site: https://dl.bintray.com/pmd/pmd-eclipse-plugin/updates/
110+
It is available via the update site: https://pmd.github.io/pmd-eclipse-plugin-p2-site/
111111
112112
$(head -$END_LINE ReleaseNotes.md | tail -$((END_LINE - BEGIN_LINE)))
113113
"

README.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Release Notes: <https://github.com/pmd/pmd-eclipse-plugin/blob/master/ReleaseNot
77

88
Eclipse Update Site:
99

10-
* Releases: <https://dl.bintray.com/pmd/pmd-eclipse-plugin/updates/>
11-
* Snapshots: <https://dl.bintray.com/pmd/pmd-eclipse-plugin/snapshots/updates/>
10+
* Releases: <https://pmd.github.io/pmd-eclipse-plugin-p2-site/>
11+
* Snapshots: <https://pmd.github.io/pmd-eclipse-plugin-p2-site/snapshot/>
1212

1313
Marketplace: [![Drag to your running Eclipse workspace. Requires Eclipse Marketplace Client](https://marketplace.eclipse.org/sites/all/themes/solstice/public/images/marketplace/btn-install.png)](http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=2755329)
1414

@@ -69,16 +69,12 @@ You can run eclipse with debugging enabled and connect to it via remote debuggin
6969

7070
### Releasing and updating the official eclipse update site
7171

72-
From now on, we use [bintray](https://bintray.com) for hosting the eclipse update site.
73-
There is a nice [blog post by Lorenzo Bettini](http://www.lorenzobettini.it/2016/02/publish-an-eclipse-p2-composite-repository-on-bintray/), which explains how it is done. There is also an [example repository](https://github.com/LorenzoBettini/p2composite-bintray-example) on github.
72+
The update site is hosted on github as a Github Pages site of the repository
73+
<https://github.com/pmd/pmd-eclipse-plugin-p2-site/>.
7474

75-
76-
Have a look at the `net.sourceforge.pmd.eclipse.p2updatesite` module, there you see
77-
78-
* a profile `release-composite` which enables the steps
79-
* the ant script `bintray.ant` which is used to upload and download the site
80-
* the ant script `packaging-p2composite.ant` which is used to modify the metadata of the
81-
p2 repo locally before uploading
75+
The release script running on Github Actions will automatically update the repository pmd-eclipse-plugin-p2-site and
76+
add the new release, update the repository metadata (compositeContent.xml and compositeArtifacts.xml
77+
as well as index.md) and push the changes.
8278

8379
The release happens in two phases:
8480

@@ -89,7 +85,7 @@ The release happens in two phases:
8985
* Update the changelog for the next version
9086
* Update the versions
9187
2. Push the changes and the tag. The [Github Actions build](https://github.com/pmd/pmd-eclipse-plugin/actions) will
92-
then publish the new version on [bintray](https://dl.bintray.com/pmd/pmd-eclipse-plugin/) and
88+
then publish the new version on [update site](https://github.com/pmd/pmd-eclipse-plugin-p2-site/) and
9389
[github releases](https://github.com/pmd/pmd-eclipse-plugin/releases)
9490

9591

@@ -111,7 +107,7 @@ The release happens in two phases:
111107
echo
112108
echo "Press enter to continue..."
113109
read
114-
./mvnw -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=$VERSION.$BUILDQUALIFIER
110+
./mvnw -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:1.7.0:set-version -DnewVersion=$VERSION.$BUILDQUALIFIER
115111
git commit -a -m "Prepare release pmd-eclipse-plugin $VERSION.$BUILDQUALIFIER"
116112
git tag $VERSION.$BUILDQUALIFIER
117113
echo "Create (temporary) release branch"
@@ -126,7 +122,7 @@ The release happens in two phases:
126122
read
127123

128124
echo "Updating version in master to next"
129-
./mvnw -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=$NEXT-SNAPSHOT
125+
./mvnw -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:1.7.0:set-version -DnewVersion=$NEXT-SNAPSHOT
130126
git commit -a -m "Prepare next pmd-eclipse-plugin development version $NEXT-SNAPSHOT"
131127

132128
echo Checkout the release branch and build the plugin
@@ -166,7 +162,7 @@ You can use the following template:
166162
PMD for Eclipse $VERSION.$BUILDQUALIFIER released
167163

168164
A new PMD for Eclipse plugin version has been released.
169-
It is available via the update site: <https://dl.bintray.com/pmd/pmd-eclipse-plugin/updates/>
165+
It is available via the update site: <https://pmd.github.io/pmd-eclipse-plugin-p2-site/>
170166

171167
* Release Notes: <https://github.com/pmd/pmd-eclipse-plugin/blob/$VERSION.$BUILDQUALIFIER/ReleaseNotes.md>
172168

ReleaseNotes.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,24 @@ Installation instructions: <https://pmd.github.io/eclipse/>
44

55
Eclipse Update Site:
66

7-
* Releases: <https://dl.bintray.com/pmd/pmd-eclipse-plugin/updates/>
8-
* Snapshots: <https://dl.bintray.com/pmd/pmd-eclipse-plugin/snapshots/updates/>
7+
* Releases: <https://pmd.github.io/pmd-eclipse-plugin-p2-site/>
8+
* Snapshots: <https://pmd.github.io/pmd-eclipse-plugin-p2-site/snapshot/>
99

1010
## ????: 4.22.0.v????
1111

1212
This is a minor release.
1313

1414
### New and noteworthy
1515

16+
* The update site moved from Bintray to Github Pages. The new URL is from now on:
17+
<https://pmd.github.io/pmd-eclipse-plugin-p2-site/>
18+
* Archives of the old versions can be found on sourceforge:
19+
<https://sourceforge.net/projects/pmd/files/pmd-eclipse/zipped/>
20+
1621
### Fixed Issues
1722

23+
* [#140](https://github.com/pmd/pmd-eclipse-plugin/issues/140): Use gh pages for update site
24+
1825
### API Changes
1926

2027
### External Contributions

net.sourceforge.pmd.eclipse/feature.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</license>
2121

2222
<url>
23-
<update label="%feature.update_site_name" url="https://dl.bintray.com/pmd/pmd-eclipse-plugin/updates/"/>
23+
<update label="%feature.update_site_name" url="https://pmd.github.io/pmd-eclipse-plugin-p2-site/"/>
2424
</url>
2525

2626
<requires>

0 commit comments

Comments
 (0)