Skip to content

Commit e75ef03

Browse files
authored
Merge pull request jenkinsci#239 from jglick/xstream
Avoid com.thoughtworks.xstream.annotations
2 parents ce791e4 + 3be0f09 commit e75ef03

5 files changed

Lines changed: 19 additions & 8 deletions

File tree

.mvn/extensions.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
2+
<extension>
3+
<groupId>io.jenkins.tools.incrementals</groupId>
4+
<artifactId>git-changelist-maven-extension</artifactId>
5+
<version>1.2</version>
6+
</extension>
7+
</extensions>

.mvn/maven.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-Pconsume-incrementals
2+
-Pmight-produce-incrementals

pom.xml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<parent>
66
<groupId>org.jenkins-ci.plugins</groupId>
77
<artifactId>plugin</artifactId>
8-
<version>4.2</version>
8+
<version>4.10</version>
99
<relativePath />
1010
</parent>
1111

1212
<groupId>com.coravy.hudson.plugins.github</groupId>
1313
<artifactId>github</artifactId>
14-
<version> 1.32.0-SNAPSHOT</version>
14+
<version>${revision}${changelist}</version>
1515
<packaging>hpi</packaging>
1616

1717
<name>GitHub plugin</name>
@@ -36,17 +36,20 @@
3636
</developers>
3737

3838
<scm>
39-
<connection>scm:git:git://github.com/jenkinsci/github-plugin.git</connection>
40-
<developerConnection>scm:git:[email protected]:jenkinsci/github-plugin.git</developerConnection>
41-
<url>https://github.com/jenkinsci/github-plugin</url>
42-
<tag>HEAD</tag>
39+
<connection>scm:git:git://github.com/${gitHubRepo}.git</connection>
40+
<developerConnection>scm:git:[email protected]:${gitHubRepo}.git</developerConnection>
41+
<url>https://github.com/${gitHubRepo}</url>
42+
<tag>${scmTag}</tag>
4343
</scm>
4444
<issueManagement>
4545
<system>JIRA</system>
4646
<url>https://issues.jenkins-ci.org/browse/JENKINS/component/15896</url>
4747
</issueManagement>
4848

4949
<properties>
50+
<revision>1.32.0</revision>
51+
<changelist>-SNAPSHOT</changelist>
52+
<gitHubRepo>jenkinsci/github-plugin</gitHubRepo>
5053
<jenkins.version>2.164.3</jenkins.version>
5154
<release.skipTests>false</release.skipTests>
5255
<maven.javadoc.skip>true</maven.javadoc.skip>

src/main/java/org/jenkinsci/plugins/github/config/GitHubPluginConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ public class GitHubPluginConfig extends GlobalConfiguration {
8282
private transient InstanceIdentity identity;
8383

8484
public GitHubPluginConfig() {
85+
getConfigFile().getXStream().alias("github-server-config", GitHubServerConfig.class);
8586
load();
8687
}
8788

src/main/java/org/jenkinsci/plugins/github/config/GitHubServerConfig.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import com.google.common.base.Optional;
88
import com.google.common.base.Predicate;
99
import com.google.common.base.Supplier;
10-
import com.thoughtworks.xstream.annotations.XStreamAlias;
1110
import edu.umd.cs.findbugs.annotations.NonNull;
1211
import hudson.Extension;
1312
import hudson.Util;
@@ -59,7 +58,6 @@
5958
* @author lanwen (Merkushev Kirill)
6059
* @since 1.13.0
6160
*/
62-
@XStreamAlias("github-server-config")
6361
public class GitHubServerConfig extends AbstractDescribableImpl<GitHubServerConfig> {
6462
private static final Logger LOGGER = LoggerFactory.getLogger(GitHubServerConfig.class);
6563

0 commit comments

Comments
 (0)