Skip to content

Commit 0d74a8a

Browse files
authored
Sdk update 20230124 180109 (#9)
1 parent 2777ba9 commit 0d74a8a

File tree

207 files changed

+28578
-2054
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+28578
-2054
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 9 deletions
This file was deleted.

.cra/.cveignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"cve": "SNYK-JAVA-ORGTESTNG-3040285",
4+
"alwaysOmit": true,
5+
"comment": "The 'Zip Slip' vulnerability does not apply to this project because we merely use TestNG to execute testcases during our maven build, and we do not deliver a jar containing test classes."
6+
}
7+
]

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,10 @@ package-lock.json
4646

4747
# IDE Files
4848
.vscode
49+
50+
# files produced by "npm install" commands during build
51+
package-lock.json
52+
node_modules/
53+
54+
# ignore the generated integration test files, as they cannot be used without manual editing
55+
modules/ibm-cloud-code-engine

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.releaserc

Lines changed: 0 additions & 25 deletions
This file was deleted.

.travis.yml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
language: java
3-
dist: xenial
3+
dist: bionic
44

55
jdk:
66
- openjdk8
@@ -30,49 +30,45 @@ stages:
3030
before_install:
3131
- sudo apt-get update
3232
- env | grep TRAVIS
33+
- pyenv global 3.8
3334

3435
jobs:
3536
include:
37+
# Build and test stage
3638
- stage: Build-Test
3739
jdk: openjdk8
38-
install:
39-
- curl -s https://codecov.io/bash > $HOME/codecov-bash.sh && chmod +x $HOME/codecov-bash.sh
40+
install: true
4041
script:
4142
- build/setMavenVersion.sh
4243
- mvn verify -fae -DskipITs $MVN_ARGS
43-
- ./test-integration.sh
44-
after_success:
45-
- build/publishCodeCoverage.sh
46-
- stage: Semantic-Release
47-
install:
48-
- sudo apt-get install python
49-
- nvm install 12
50-
- npm install -g [email protected]
51-
- pip install --user bump2version
52-
- npm install @semantic-release/changelog
53-
- npm install @semantic-release/exec
54-
- npm install @semantic-release/git
55-
- npm install @semantic-release/github
44+
- jdk: openjdk11
45+
install: true
5646
script:
57-
- npx semantic-release
58-
after_success:
59-
- echo "Semantic release has successfully created a new tagged-release"
47+
- mvn verify -fae -DskipITs $MVN_ARGS
48+
- jdk: openjdk17
49+
install: true
50+
script:
51+
- mvn verify -fae -DskipITs $MVN_ARGS
52+
53+
# Publish stage
6054
- stage: Publish-Release
6155
jdk: openjdk8
6256
name: Publish-Javadoc
6357
install: true
58+
if: type != pull_request AND branch = main AND tag IS present
6459
script:
6560
- build/setMavenVersion.sh
6661
- mvn clean javadoc:aggregate $MVN_ARGS
6762
- build/publishJavadoc.sh
6863
after_success:
6964
- echo "Javadocs successfully published to gh-pages!"
7065
- jdk: openjdk8
66+
if: type != pull_request AND branch = main AND tag IS present
7167
name: Publish-To-Maven-Central
7268
install: true
7369
script:
7470
- build/setupSigning.sh
7571
- build/setMavenVersion.sh
7672
- mvn deploy $MVN_ARGS -DskipTests -P central
7773
after_success:
78-
- echo "Maven artifacts successfully published to Maven Central!"
74+
- echo "Maven artifacts successfully published to Maven Central!"

CHANGELOG.md

Lines changed: 0 additions & 59 deletions
This file was deleted.

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
44
-->
55

6-
# IBM Cloud Code Engine Java SDK Version 0.3.3
6+
# IBM Cloud Code Engine Java SDK Version 2.0.0
77
Java client library to interact with the [Code Engine API](https://cloud.ibm.com/apidocs/codeengine).
88

9-
Disclaimer: this SDK is being released initially as a **pre-release** version.
10-
Changes might occur which impact applications that use this SDK.
11-
129
## Table of Contents
1310

1411
<!--
@@ -26,6 +23,8 @@ Changes might occur which impact applications that use this SDK.
2623
- [Overview](#overview)
2724
- [Prerequisites](#prerequisites)
2825
- [Installation](#installation)
26+
* [Maven](#maven)
27+
* [Gradle](#gradle)
2928
- [Using the SDK](#using-the-sdk)
3029
- [Questions](#questions)
3130
- [Issues](#issues)
@@ -41,7 +40,7 @@ The IBM Cloud Code Engine Java SDK allows developers to programmatically interac
4140

4241
Service Name | Artifact Coordinates
4342
--- | ---
44-
[Code Engine](https://cloud.ibm.com/apidocs/codeengine) | com.ibm.cloud.code-engine:0.3.3
43+
[Code Engine](https://cloud.ibm.com/apidocs/codeengine/codeengine-v2.0.0) | com.ibm.cloud.code-engine:2.0.0
4544

4645
## Prerequisites
4746

@@ -52,32 +51,34 @@ Service Name | Artifact Coordinates
5251
* Java 8 or above.
5352

5453
## Installation
55-
The current version of this SDK is: 0.3.3
54+
The current version of this SDK is: 2.0.0
5655

5756
Each service's artifact coordinates are listed in the table above.
5857

59-
The project artifacts are published on the following public maven repositories:
60-
- [JCenter](https://bintray.com/bintray/jcenter) - For information on how to use the
61-
public JCenter maven repository, open [this link](https://bintray.com/bintray/jcenter)
62-
then click the `Set Me Up!` button.
63-
- [Maven Central](https://repo1.maven.org/maven2/) - This is the default public repository
64-
used by maven when searching for dependencies. To use this repository within your
65-
gradle build, please see
58+
The project artifacts are published on the public [Maven Central](https://repo1.maven.org/maven2/)
59+
artifact repository. This is the default public repository used by maven when searching for dependencies.
60+
To use this repository within a gradle build, please see
6661
[this link](https://docs.gradle.org/current/userguide/declaring_repositories.html).
6762

6863
To use a particular service, define a dependency that contains the
69-
artifact coordinates (group id, artifact id and version) for the service, like this:
64+
artifact coordinates (group id, artifact id and version) for the service.
65+
Here are examples for maven and gradle:
7066

71-
##### Maven
67+
### Maven
7268

7369
```xml
7470
<dependency>
7571
<groupId>com.ibm.cloud</groupId>
7672
<artifactId>code-engine</artifactId>
77-
<version>0.3.3</version>
73+
<version>2.0.0</version>
7874
</dependency>
7975
```
8076

77+
### Gradle
78+
```gradle
79+
compile 'com.ibm.cloud:code-engine:2.0.0'
80+
```
81+
8182
## Using the SDK
8283
Examples and a demo are available in the [module examples](/modules/examples) folder.
8384

build/publishCodeCoverage.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

modules/code-engine/pom.xml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<parent>
6+
<artifactId>code-engine-parent</artifactId>
7+
<groupId>com.ibm.cloud</groupId>
8+
<version>1.0.0-SNAPSHOT</version>
9+
<relativePath>../..</relativePath>
10+
</parent>
11+
12+
<artifactId>code-engine</artifactId>
13+
14+
<name>Code Engine SDK Library</name>
15+
<packaging>jar</packaging>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>com.ibm.cloud</groupId>
20+
<artifactId>sdk-core</artifactId>
21+
</dependency>
22+
<dependency>
23+
<artifactId>code-engine-common</artifactId>
24+
<groupId>${project.groupId}</groupId>
25+
</dependency>
26+
<dependency>
27+
<artifactId>code-engine-common</artifactId>
28+
<groupId>${project.groupId}</groupId>
29+
<type>test-jar</type>
30+
<classifier>tests</classifier>
31+
<scope>test</scope>
32+
</dependency>
33+
<dependency>
34+
<groupId>org.testng</groupId>
35+
<artifactId>testng</artifactId>
36+
<scope>test</scope>
37+
</dependency>
38+
<dependency>
39+
<groupId>com.squareup.okhttp3</groupId>
40+
<artifactId>mockwebserver</artifactId>
41+
<scope>test</scope>
42+
</dependency>
43+
</dependencies>
44+
45+
<developers>
46+
<developer>
47+
<name>IBM Cloud DevX SDK Development</name>
48+
<email>[email protected]</email>
49+
<url>https://www.ibm.com/</url>
50+
</developer>
51+
</developers>
52+
53+
</project>

0 commit comments

Comments
 (0)