Skip to content

Commit

Permalink
extract a filesocket sub-project
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Dec 30, 2016
1 parent 13b3ae0 commit 5a8c4e0
Show file tree
Hide file tree
Showing 12 changed files with 97 additions and 7 deletions.
7 changes: 1 addition & 6 deletions client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,7 @@ dependencies {

compile 'org.apache.commons:commons-compress:1.13'

compile('com.kohlschutter.junixsocket:junixsocket-native-common:2.0.4') {
exclude module: 'log4j'
}
compile('com.kohlschutter.junixsocket:junixsocket-common:2.0.4') {
exclude module: 'log4j'
}
compile project(':filesocket')

compile 'org.bouncycastle:bcpkix-jdk15on:1.56'

Expand Down
3 changes: 3 additions & 0 deletions filesocket/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/build
classes

92 changes: 92 additions & 0 deletions filesocket/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}

dependencies {
classpath 'net.saliman:gradle-cobertura-plugin:2.4.0'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.7.1'

classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}

apply plugin: 'groovy'

apply plugin: 'jacoco'
apply plugin: 'net.saliman.cobertura'
apply plugin: 'com.github.kt3k.coveralls'

apply plugin: 'maven'
apply plugin: 'maven-publish'

apply plugin: 'com.jfrog.bintray'

apply plugin: 'idea'

group = 'de.gesellix'

repositories {
mavenLocal()
jcenter()
mavenCentral()
}

dependencies {
compile 'org.codehaus.groovy:groovy:2.4.7'
compile 'org.codehaus.groovy:groovy-json:2.4.7'

compile 'org.slf4j:slf4j-api:1.7.21'
testCompile 'ch.qos.logback:logback-classic:1.1.8'

compile 'com.squareup.okio:okio:1.11.0'
compile 'com.squareup.okhttp3:okhttp:3.5.0'
testCompile 'com.squareup.okhttp3:mockwebserver:3.5.0'

compile 'org.apache.commons:commons-compress:1.13'

compile('com.kohlschutter.junixsocket:junixsocket-native-common:2.0.4') {
exclude module: 'log4j'
}
compile('com.kohlschutter.junixsocket:junixsocket-common:2.0.4') {
exclude module: 'log4j'
}

compile 'org.bouncycastle:bcpkix-jdk15on:1.56'

testCompile project(':testutil')

testCompile('org.spockframework:spock-core:1.0-groovy-2.4') {
exclude module: 'groovy-all'
}
testCompile 'cglib:cglib-nodep:3.2.4'

testCompile 'commons-lang:commons-lang:2.6'
}

task sourcesJar(type: Jar) {
dependsOn classes
classifier 'sources'
from sourceSets.main.allSource
}

test {
// minimal way of providing a special environment variable for the EnvFileParserTest
environment "A_KNOWN_VARIABLE", "my value"
}

cobertura {
coverageSourceDirs = sourceSets.main.groovy.srcDirs
coverageFormats = ['html', 'xml']
}

jacocoTestReport.reports {
xml.enabled = true
html.enabled = true
}

artifacts {
archives sourcesJar
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package de.gesellix.docker.client.filesocket

import de.gesellix.docker.client.filesocket.HostnameEncoder
import spock.lang.Specification

class HostnameEncoderSpec extends Specification {
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
rootProject.name = 'docker-client'
include 'testutil'
include 'filesocket'
include 'client'
include 'integration-test'
include 'explore'

0 comments on commit 5a8c4e0

Please sign in to comment.