Skip to content

Commit 4e41262

Browse files
auto-generating pom.xml
1 parent 3344306 commit 4e41262

File tree

3 files changed

+93
-148
lines changed

3 files changed

+93
-148
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ target
1313
# Generated Files
1414
bin/
1515
gen/
16-
pom.xml
1716

1817
# IDE
1918
.vscode

injectionApi/build.gradle

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,25 @@ plugins {
55
id 'signing'
66
}
77

8-
group 'com.socketlabs'
9-
version '1.0.1'
8+
def baseGroupId = "com.socketlabs"
9+
def baseArtifactId = 'injectionApi'
10+
11+
def computeVersion() {
12+
def baseVersion = "1.0.0"
13+
def release = false
14+
if (release) {
15+
return "${baseVersion}"
16+
}
17+
else {
18+
return "${baseVersion}-SNAPSHOT-${(new Date().format('yyyyMMddHHmmss'))}"
19+
}
20+
21+
}
22+
23+
group "${baseGroupId}"
24+
version = computeVersion()
25+
26+
1027

1128
sourceCompatibility = 1.8
1229

@@ -63,19 +80,13 @@ uploadArchives {
6380
MavenDeployment deployment -> signing.signPom(deployment)
6481
}
6582

66-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
67-
authentication(userName: sonatypeUsername, password: sonatypePassword)
68-
}
69-
70-
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
71-
authentication(userName: sonatypeUsername, password: sonatypePassword)
72-
}
83+
repository(url: localRepoUrl)
7384

7485
pom.project {
7586

76-
groupId 'com.socketlabs'
77-
artifactId 'injectionApi'
78-
version '1.0.1'
87+
groupId "${baseGroupId}"
88+
artifactId "${baseArtifactId}"
89+
version "${version}"
7990

8091
name 'socketlabs-java'
8192
packaging 'jar'
@@ -111,7 +122,7 @@ uploadArchives {
111122
name 'Ross Brazuk'
112123
}
113124
}
114-
}
125+
}.writeTo("$projectDir/pom.xml")
115126
}
116127
}
117128
}

injectionApi/pom.xml

Lines changed: 69 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -1,137 +1,72 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
4-
<parent>
5-
<groupId>com.socketlabs</groupId>
6-
<artifactId>injectionApi</artifactId>
7-
<version>1.0.0</version>
8-
</parent>
9-
<groupId>com.socketlabs</groupId>
10-
<artifactId>socketlabs-java</artifactId>
11-
<name>SocketLabs Email Delivery Java library</name>
12-
<version>1.0.0</version>
13-
<description>The SocketLabs Email Delivery Java library allows you to easily send email messages via the SocketLabs Injection API.</description>
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>com.socketlabs</groupId>
6+
<artifactId>injectionApi</artifactId>
7+
<version>1.0.0-SNAPSHOT-20181107094954</version>
8+
<name>socketlabs-java</name>
9+
<description>SocketLabs Email Delivery Java library</description>
10+
<url>https://github.com/socketlabs/socketlabs-java/</url>
11+
<organization>
12+
<name>com.socketlabs</name>
13+
<url>https://github.com/socketlabs</url>
14+
</organization>
15+
<licenses>
16+
<license>
17+
<name>MIT License</name>
18+
<url>https://github.com/socketlabs/socketlabs-java/blob/master/LICENSE</url>
19+
</license>
20+
</licenses>
21+
<developers>
22+
<developer>
23+
<id>david-schrenker</id>
24+
<name>David Schrenker</name>
25+
</developer>
26+
<developer>
27+
<id>rbrazuk</id>
28+
<name>Ross Brazuk</name>
29+
</developer>
30+
</developers>
31+
<scm>
32+
<connection>scm:git:git://github.com/socketlabs/socketlabs-java.git</connection>
33+
<developerConnection>scm:git:ssh://[email protected]:socketlabs/socketlabs-java.git</developerConnection>
1434
<url>https://github.com/socketlabs/socketlabs-java</url>
15-
16-
<issueManagement>
17-
<system>GitHub</system>
18-
<url>https://github.com/socketlabs/socketlabs-java/issues</url>
19-
20-
</issueManagement>
21-
<licenses>
22-
<license>
23-
<name>The MIT License (MIT)</name>
24-
<url>https://github.com/socketlabs/socketlabs-java/blob/master/LICENSE</url>
25-
<distribution>repo</distribution>
26-
</license>
27-
</licenses>
28-
29-
<properties>
30-
<jackson.version>2.9.2</jackson.version>
31-
</properties>
32-
33-
<scm>
34-
<url>https://github.com/socketlabs/socketlabs-java</url>
35-
<connection>scm:git:[email protected]:socketlabs/socketlabs-java.git</connection>
36-
<developerConnection>scm:git:[email protected]:socketlabs/socketlabs-java.git</developerConnection>
37-
<tag>HEAD</tag>
38-
</scm>
39-
40-
<build>
41-
<resources>
42-
<resource>
43-
<directory>${basedir}</directory>
44-
<includes>
45-
<include>LICENSE</include>
46-
</includes>
47-
</resource>
48-
</resources>
49-
<plugins>
50-
<plugin>
51-
<groupId>org.apache.maven.plugins</groupId>
52-
<artifactId>maven-compiler-plugin</artifactId>
53-
<version>3.1</version>
54-
<configuration>
55-
<source>1.8</source>
56-
<target>1.8</target>
57-
</configuration>
58-
</plugin>
59-
<plugin>
60-
<groupId>org.apache.maven.plugins</groupId>
61-
<artifactId>maven-release-plugin</artifactId>
62-
<version>2.4.2</version>
63-
<dependencies>
64-
<dependency>
65-
<groupId>org.apache.maven.scm</groupId>
66-
<artifactId>maven-scm-provider-gitexe</artifactId>
67-
<version>1.8.1</version>
68-
</dependency>
69-
</dependencies>
70-
</plugin>
71-
<plugin>
72-
<groupId>org.apache.maven.plugins</groupId>
73-
<artifactId>maven-source-plugin</artifactId>
74-
<version>2.2.1</version>
75-
<executions>
76-
<execution>
77-
<id>attach-sources</id>
78-
<goals>
79-
<goal>jar</goal>
80-
</goals>
81-
</execution>
82-
</executions>
83-
</plugin>
84-
<plugin>
85-
<groupId>org.apache.maven.plugins</groupId>
86-
<artifactId>maven-javadoc-plugin</artifactId>
87-
<version>2.9.1</version>
88-
<executions>
89-
<execution>
90-
<id>attach-javadocs</id>
91-
<goals>
92-
<goal>jar</goal>
93-
</goals>
94-
</execution>
95-
</executions>
96-
</plugin>
97-
</plugins>
98-
</build>
99-
100-
<developers>
101-
<developer>
102-
<id>david-schrenker</id>
103-
<name>David Schrenker</name>
104-
</developer>
105-
<developer>
106-
<id>rbrazuk</id>
107-
<name>Ross Brazuk</name>
108-
</developer>
109-
</developers>
110-
111-
<packaging>jar</packaging>
112-
113-
<dependencies>
114-
<dependency>
115-
<groupId>com.fasterxml.jackson.core</groupId>
116-
<artifactId>jackson-core</artifactId>
117-
<version>${jackson.version}</version>
118-
</dependency>
119-
<dependency>
120-
<groupId>com.fasterxml.jackson.core</groupId>
121-
<artifactId>jackson-databind</artifactId>
122-
<version>${jackson.version}</version>
123-
</dependency>
124-
<dependency>
125-
<groupId>com.squareup.okhttp3</groupId>
126-
<artifactId>okhttp</artifactId>
127-
<version>3.11.0</version>
128-
</dependency>
129-
<dependency>
130-
<groupId>com.google.guava</groupId>
131-
<artifactId>guava</artifactId>
132-
<version>12.0</version>
133-
</dependency>
134-
</dependencies>
135-
35+
</scm>
36+
<issueManagement>
37+
<system>GitHub</system>
38+
<url>https://github.com/socketlabs/socketlabs-java/issues</url>
39+
</issueManagement>
40+
<dependencies>
41+
<dependency>
42+
<groupId>com.fasterxml.jackson.core</groupId>
43+
<artifactId>jackson-core</artifactId>
44+
<version>2.9.5</version>
45+
<scope>compile</scope>
46+
</dependency>
47+
<dependency>
48+
<groupId>com.fasterxml.jackson.core</groupId>
49+
<artifactId>jackson-databind</artifactId>
50+
<version>2.9.5</version>
51+
<scope>compile</scope>
52+
</dependency>
53+
<dependency>
54+
<groupId>com.google.guava</groupId>
55+
<artifactId>guava</artifactId>
56+
<version>12.0</version>
57+
<scope>compile</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>com.squareup.okhttp3</groupId>
61+
<artifactId>okhttp</artifactId>
62+
<version>3.11.0</version>
63+
<scope>compile</scope>
64+
</dependency>
65+
<dependency>
66+
<groupId>junit</groupId>
67+
<artifactId>junit</artifactId>
68+
<version>4.12</version>
69+
<scope>test</scope>
70+
</dependency>
71+
</dependencies>
13672
</project>
137-

0 commit comments

Comments
 (0)