Skip to content

Commit 112f1d5

Browse files
author
rdasgupt
committed
Update action script
1 parent 08e91ad commit 112f1d5

5 files changed

Lines changed: 266 additions & 4 deletions

File tree

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# os: [ubuntu-latest, macOS-latest, windows-latest]
1919
# java: [ 8.0.192, 8, 11.0.3, 17, 18-ea ]
2020
os: [ubuntu-latest]
21-
java: [ 11.0.3 ]
21+
java: [ 8.0.192 ]
2222
fail-fast: false
2323
max-parallel: 4
2424
name: Test MQTT Paho Java on JDK ${{ matrix.java }}, ${{ matrix.os }}

build.gradle

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*
4+
* This generated file contains a sample Java project to get you started.
5+
* For more details take a look at the Java Quickstart chapter in the Gradle
6+
* User Manual available at https://docs.gradle.org/6.0.1/userguide/tutorial_java_projects.html
7+
*/
8+
9+
plugins {
10+
id 'java'
11+
12+
id 'application'
13+
}
14+
15+
compileJava {
16+
options.compilerArgs << '-Xlint:deprecation'
17+
options.compilerArgs << '-Xlint:unchecked'
18+
}
19+
20+
version = '1.0.0'
21+
22+
repositories {
23+
mavenCentral()
24+
}
25+
26+
def tempDir = file("tmp")
27+
28+
task createTmpdir() {
29+
delete tempDir
30+
tempDir.mkdirs()
31+
}
32+
33+
test.dependsOn createTmpdir
34+
35+
configurations {
36+
libs
37+
}
38+
39+
dependencies {
40+
libs 'org.json:json:20211205'
41+
libs 'org.apache.commons:commons-jcs3-core:3.0'
42+
libs 'org.apache.commons:commons-csv:1.9.0'
43+
libs 'commons-net:commons-net:3.0.1'
44+
libs 'com.fasterxml.jackson.core:jackson-databind:2.13.0'
45+
libs 'com.ibm.db2:jcc:11.5.0.0'
46+
libs 'org.eclipse.paho:org.eclipse.paho.mqttv5.client:1.2.5'
47+
48+
testImplementation 'junit:junit:4.13.1'
49+
50+
configurations.implementation.extendsFrom(configurations.libs)
51+
}
52+
53+
task getDeps(type: Copy) {
54+
from sourceSets.main.runtimeClasspath
55+
into 'libs/'
56+
}
57+
58+
application {
59+
mainClassName = 'com.ibm.mas.scada.historian.connector.Connector'
60+
}
61+
62+
test {
63+
useJUnit()
64+
}
65+

gradlew

Lines changed: 184 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88

99
<properties>
1010
<!-- source & target java version for MQTT Client -->
11-
<mqttclient.java.version>1.8</mqttclient.java.version>
11+
<maven.compiler.source>1.8</maven.compiler.source>
12+
<maven.compiler.target>1.8</maven.compiler.target>
13+
<!-- mqttclient.java.version>1.8</mqttclient.java.version -->
1214
<!-- source & target java version for others modules -->
13-
<java.version>1.8</java.version>
15+
<!-- java.version>1.8</java.version -->
1416
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1517
<build.level>${maven.build.timestamp}</build.level>
1618
<tycho.version>1.7.0</tycho.version>
@@ -123,8 +125,9 @@
123125
<plugin>
124126
<groupId>org.apache.maven.plugins</groupId>
125127
<artifactId>maven-javadoc-plugin</artifactId>
126-
<version>3.0.0</version>
128+
<version>3.2.0</version>
127129
<configuration>
130+
<javadocExecutable>/usr/bin/javadoc</javadocExecutable>
128131
<source>8</source>
129132
</configuration>
130133
</plugin>

settings.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*
4+
* The settings file is used to specify which projects to include in your build.
5+
*
6+
* Detailed information about configuring a multi-project build in Gradle can be found
7+
* in the user manual at https://docs.gradle.org/6.0.1/userguide/multi_project_builds.html
8+
*/
9+
10+
rootProject.name = 'paho.mqtt.java'

0 commit comments

Comments
 (0)