Skip to content

Commit 1a41716

Browse files
committed
Fix to publish to maven
1 parent 4fbb7a9 commit 1a41716

File tree

3 files changed

+84
-2
lines changed

3 files changed

+84
-2
lines changed

pom.xml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,37 @@
1313
<description>A client API to access Cryptolens Licensing API.</description>
1414
<url>https://github.com/cryptolens/cryptolens-java</url>
1515

16+
<licenses>
17+
<license>
18+
<name>MIT License</name>
19+
<url>https://opensource.org/licenses/MIT</url>
20+
<distribution>repo</distribution>
21+
</license>
22+
</licenses>
23+
24+
<scm>
25+
<url>https://github.com/Cryptolens/cryptolens-java</url>
26+
<connection>scm:git:https://github.com/Cryptolens/cryptolens-java.git</connection>
27+
<developerConnection>scm:git:ssh://[email protected]/Cryptolens/cryptolens-java.git</developerConnection>
28+
<tag>HEAD</tag>
29+
</scm>
30+
31+
<developers>
32+
<developer>
33+
<id>cryptolens</id>
34+
<name>Cryptolens AB</name>
35+
<email>[email protected]</email>
36+
<url>https://cryptolens.io</url>
37+
<organization>Cryptolens AB</organization>
38+
<organizationUrl>https://cryptolens.io</organizationUrl>
39+
</developer>
40+
</developers>
41+
1642
<properties>
1743
<maven.compiler.source>1.8</maven.compiler.source>
1844
<maven.compiler.target>1.8</maven.compiler.target>
1945
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46+
<gpg.keyname>6D0FB5F8A25A36F35F9AE87AEA8D18F3E1D8A9CF</gpg.keyname>
2047
</properties>
2148

2249
<dependencies>
@@ -43,4 +70,59 @@
4370
<scope>test</scope>
4471
</dependency>
4572
</dependencies>
73+
74+
<build>
75+
<plugins>
76+
<!-- sources jar -->
77+
<plugin>
78+
<groupId>org.apache.maven.plugins</groupId>
79+
<artifactId>maven-source-plugin</artifactId>
80+
<version>3.3.1</version>
81+
<executions>
82+
<execution><goals><goal>jar</goal></goals></execution>
83+
</executions>
84+
</plugin>
85+
86+
<!-- javadoc jar -->
87+
<plugin>
88+
<groupId>org.apache.maven.plugins</groupId>
89+
<artifactId>maven-javadoc-plugin</artifactId>
90+
<version>3.6.3</version>
91+
<executions>
92+
<execution><goals><goal>jar</goal></goals></execution>
93+
</executions>
94+
</plugin>
95+
96+
<!-- sign all artifacts -->
97+
<plugin>
98+
<groupId>org.apache.maven.plugins</groupId>
99+
<artifactId>maven-gpg-plugin</artifactId>
100+
<version>3.2.4</version>
101+
<executions>
102+
<execution>
103+
<id>sign</id>
104+
<phase>verify</phase>
105+
<goals><goal>sign</goal></goals>
106+
<configuration>
107+
<keyname>${gpg.keyname}</keyname>
108+
</configuration>
109+
</execution>
110+
</executions>
111+
</plugin>
112+
113+
<!-- publish via Central Portal -->
114+
<plugin>
115+
<groupId>org.sonatype.central</groupId>
116+
<artifactId>central-publishing-maven-plugin</artifactId>
117+
<version>0.8.0</version>
118+
<extensions>true</extensions>
119+
<configuration>
120+
<publishingServerId>central</publishingServerId>
121+
<autoPublish>true</autoPublish> <!-- optional: publish automatically -->
122+
<waitUntil>published</waitUntil> <!-- optional: block until published -->
123+
</configuration>
124+
</plugin>
125+
</plugins>
126+
</build>
127+
46128
</project>

src/main/java/io/cryptolens/internal/HelperMethods.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static <T extends BasicResult> T SendRequestToWebAPI(String method, Reque
3838
List<Field> allFields = new ArrayList<>();
3939
getAllFields(allFields, model.getClass());
4040

41-
String licenseServerUrl = "https://app.cryptolens.io";
41+
String licenseServerUrl = "https://api.cryptolens.io";
4242

4343
for(Field field : allFields) {
4444
field.setAccessible(true);

src/main/java/io/cryptolens/methods/Helpers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class Helpers {
3838
* Returns a unique identifier of the device. Note, root access may be required.
3939
* Note, this method is not the same as the one used in our .NET client.
4040
* Also, this method only works on desktop computers.
41-
* @apiNote If you do not want to depend on slf4j or if you use the cryptolens-android
41+
* API note: If you do not want to depend on slf4j or if you use the cryptolens-android
4242
* binary, please call GetMachineCode with v=2.
4343
*/
4444
public static String GetMachineCode() {

0 commit comments

Comments
 (0)