Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 35c68b3

Browse files
authored
Merge pull request #1 from DeepCodeAI/dev
Dev
2 parents e8b08c4 + 0c07be1 commit 35c68b3

32 files changed

Lines changed: 1576 additions & 1 deletion

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@
2121

2222
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2323
hs_err_pid*
24+
25+
# Ignore Gradle project-specific cache directory
26+
.gradle
27+
28+
# Ignore Gradle build output directory
29+
build

.idea/.gitignore

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

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
11
# java-client
2-
Deepcode Public API package in Java
2+
Deepcode Public API package in Java
3+
4+
For APIs look for `DeepCodeRestApi` public methods. For descriptions look [Rest APIs and CLI](https://deepcode.freshdesk.com/support/solutions/folders/60000321393)
5+
6+
## Build the jar
7+
8+
To make a standalone jar file with all dependencies use `shadowJar` gradle task.
9+
- Clone this repository: `git clone https://github.com/DeepCodeAI/java-client.git`
10+
- Switch to the dev branch: `git checkout origin/dev`
11+
- Run gradle task: `source gradlew shadowJar`
12+
- Look for resulting JAR file at `./build/libs`
13+
14+
## Run tests
15+
16+
- Clone this repository: `git clone https://github.com/DeepCodeAI/java-client.git`
17+
- Switch to the dev branch: `git checkout origin/dev`
18+
- Run gradle test task: `source gradlew test --stacktrace --scan`

build.gradle

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*
4+
* This generated file contains a sample Java Library project to get you started.
5+
* For more details take a look at the Java Libraries chapter in the Gradle
6+
* User Manual available at https://docs.gradle.org/6.2.2/userguide/java_library_plugin.html
7+
*/
8+
9+
plugins {
10+
// Apply the java-library plugin to add support for Java Library
11+
id 'java-library'
12+
id "com.github.johnrengelman.shadow" version "5.2.0"
13+
}
14+
15+
repositories {
16+
// Use jcenter for resolving dependencies.
17+
// You can declare any Maven/Ivy/file repository here.
18+
jcenter()
19+
}
20+
21+
version '0.0.11'
22+
23+
dependencies {
24+
// This dependency is exported to consumers, that is to say found on their compile classpath.
25+
// api 'org.apache.commons:commons-math3:3.6.1'
26+
27+
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
28+
// implementation 'com.google.guava:guava:28.1-jre'
29+
implementation 'com.squareup.retrofit2:retrofit:2.7.1'
30+
implementation 'com.squareup.retrofit2:converter-gson:2.7.1'
31+
implementation 'org.jetbrains:annotations:15.0'
32+
// should be provided by IntelliJ platform
33+
//compileOnly 'org.slf4j:slf4j-api:1.7.25'
34+
35+
// Use JUnit test framework
36+
testImplementation 'junit:junit:4.12'
37+
//testRuntimeOnly 'org.slf4j:slf4j-api:1.7.25'
38+
//testRuntimeOnly 'org.slf4j:slf4j-nop:1.7.25'
39+
}
40+
41+
test {
42+
testLogging {
43+
showStandardStreams = true
44+
}
45+
outputs.upToDateWhen { false }
46+
}

gradle/wrapper/gradle-wrapper.jar

57.3 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Fri Mar 13 19:35:05 MSK 2020
2+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip
3+
distributionBase=GRADLE_USER_HOME
4+
distributionPath=wrapper/dists
5+
zipStorePath=wrapper/dists
6+
zipStoreBase=GRADLE_USER_HOME

gradlew

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

gradlew.bat

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

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.2.2/userguide/multi_project_builds.html
8+
*/
9+
10+
rootProject.name = 'java-client'

0 commit comments

Comments
 (0)