Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions backend.ai-client-tester/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,21 @@ apply plugin: 'application'
mainClassName = "ai.backend.clienttester.Main"

dependencies {
compile project(':backend.ai-client')
compile group: 'commons-cli', name: 'commons-cli', version:'1.3.1'
compile 'commons-io:commons-io:2.6'
implementation project(':backend.ai-client')
implementation group: 'commons-cli', name: 'commons-cli', version:'1.3.1'
implementation 'commons-io:commons-io:2.6'
implementation 'com.google.code.gson:gson:2.8.9'
}

jar {
manifest {
attributes 'Title': 'Backend.AI client lib tester', 'Version': version, 'Main-Class':'ai.backend.clienttester.Main'
}
dependsOn configurations.runtime
dependsOn configurations.runtimeClasspath
from {
configurations.compile.collect {it.isDirectory()? it: zipTree(it)}
configurations.runtimeClasspath.collect {it.isDirectory()? it: zipTree(it)}
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
run {
if (project.hasProperty("appArgs")) {
Expand Down
14 changes: 7 additions & 7 deletions backend.ai-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ plugins {
id 'java-library-distribution'
}


jar {
manifest {
attributes 'Title': 'Backend.AI Client for Java',
'Implementation-Title': 'Backend.AI Client for Java',
'Implementation-Version': version,
'Main-Class': 'ai.backend.client.Main'
}
dependsOn configurations.runtime
dependsOn configurations.runtimeClasspath
from {
configurations.compile.collect {it.isDirectory()? it: zipTree(it)}
configurations.runtimeClasspath.collect {it.isDirectory()? it: zipTree(it)}
}
}

description = 'Backend.AI Client Library for Java'


dependencies {
compile 'com.google.code.gson:gson:2.8.2'
compile 'com.squareup.okhttp3:okhttp:3.9.1'
testCompile 'org.junit.jupiter:junit-jupiter-api:5.0.1'
testCompile 'junit:junit:4.12'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.squareup.okhttp3:okhttp:3.9.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.0.1'
testImplementation 'junit:junit:4.12'
}
11 changes: 6 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
allprojects {
apply plugin: 'maven'
apply plugin: 'maven-publish'
group = 'ai.backend.client'
version = '0.3'
}

subprojects {
apply plugin: 'java'
sourceCompatibility = 1.6
targetCompatibility = 1.6
sourceCompatibility = 1.7
targetCompatibility = 1.7

repositories {
mavenLocal()

maven { url "http://repo.maven.apache.org/maven2" }
mavenCentral()

maven { url "https://repo.maven.apache.org/maven2" }
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
3 changes: 1 addition & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
rootProject.name = 'BackendAI-Java-SDK'
include ':backend.ai-client'
include ':backend.ai-client-tester'
include 'backend.ai-client', 'backend.ai-client-tester'

project(':backend.ai-client').projectDir = "$rootDir/backend.ai-client" as File
project(':backend.ai-client-tester').projectDir = "$rootDir/backend.ai-client-tester" as File