Skip to content

Commit

Permalink
Checking whether JOOQ has fixed the Type generation problem for Strin…
Browse files Browse the repository at this point in the history
…g or not. They have not. :-(
  • Loading branch information
niclash committed Apr 18, 2018
1 parent f2fcd58 commit ee29552
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 17 deletions.
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies {
compile 'org.hibernate.build.gradle:gradle-maven-publish-auth:2.0.1'
compile 'org.apache.httpcomponents:httpclient:4.5.2'
compile 'org.apache.httpcomponents:httpmime:4.5.2'
compile 'com.bmuschko:gradle-docker-plugin:3.0.7'
compile 'com.bmuschko:gradle-docker-plugin:3.2.6'
compile 'com.moowork.gradle:gradle-node-plugin:1.1.1'

testCompile 'junit:junit:4.12'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class DependenciesPlugin implements Plugin<Project>

private static void applyRepositories( Project project, DependenciesDeclarationExtension declaration )
{
project.repositories.jcenter()
declaration.repositoriesUrls.each { name, url ->
project.repositories.maven { MavenArtifactRepository repo ->
repo.name = name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.file.CopySpec
import org.gradle.api.logging.LogLevel
import org.gradle.api.logging.Logger

@CompileStatic
class InternalDockerPlugin implements Plugin<Project>
Expand Down Expand Up @@ -69,7 +68,7 @@ class InternalDockerPlugin implements Plugin<Project>
}
}

private void applyDockerSwitch( Project project )
private static void applyDockerSwitch( Project project )
{
project.tasks.create( TaskNames.CHECK_DOCKER_CONNECTIVITY, DockerVersion, { DockerVersion task ->
task.onError = { ex ->
Expand Down Expand Up @@ -109,7 +108,7 @@ class InternalDockerPlugin implements Plugin<Project>
dockers.eachDir { File dockerDir ->
def dockerName = dockerDir.name
def buildDockerfileTaskName = "build${ dockerName.capitalize() }Dockerfile"
def buildImageTaskName = "build${ dockerName.capitalize() }DockerImage"
String buildImageTaskName = "build${ dockerName.capitalize() }DockerImage"
def tmpDir = project.file "${ project.buildDir }/tmp/docker/${ dockerName }"
tmpDir.mkdirs()
def buildDockerfileTask = project.tasks.create( buildDockerfileTaskName ) { Task task ->
Expand All @@ -134,9 +133,9 @@ class InternalDockerPlugin implements Plugin<Project>
def buildImageTask = project.tasks.create( buildImageTaskName, DockerBuildImage, { DockerBuildImage task ->
task.description = "Build $dockerName Docker image"
task.inputDir = tmpDir
task.dockerFile = new File( tmpDir, 'Dockerfile' )
task.tag = "org.apache.polygene:${ PublishNaming.publishedNameFor ":internals:docker-$dockerName" }"
} as Action<DockerBuildImage> )
task.dockerFile = new File(tmpDir, 'Dockerfile')
task.tag = "org.apache.polygene:${PublishNaming.publishedNameFor ":internals:docker-$dockerName"}"
} as Action<DockerBuildImage>)
[ buildDockerfileTask, buildImageTask ].each { Task task ->
task.group = 'docker'
task.dependsOn TaskNames.CHECK_DOCKER_CONNECTIVITY
Expand Down
1 change: 1 addition & 0 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ dependencies.dockerImagesVersions << [
memcached: 'memcached:1.4.39-alpine',
mariadb : 'mariadb:10.1.21',
mongo : 'mongo:3.5.10',
mysql : 'mysql:5.5.9',
postgres : 'postgres:9.6.3-alpine',
redis : 'redis:4.0.0-alpine',
riak : 'basho/riak-kv:ubuntu-2.2.3',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/**
* Test the MongoDBEntityStoreService.
*/
@Docker( image = "mongo",
@Docker( image = "org.apache.polygene:org.apache.polygene.internal.docker-mongo",
ports = @Port( exposed = 8801, inner = 27017),
newForEachCase = false
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/**
* Test the MongoDBEntityStoreService.
*/
@Docker( image = "mongo",
@Docker( image = "org.apache.polygene:org.apache.polygene.internal.docker-mongo",
ports = @Port( exposed = 8801, inner = 27017),
waitFor = @WaitFor( value = "MongoDB starting", timeoutInMillis = 30000),
newForEachCase = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/**
* Test the MongoDBEntityStoreService usage with a CachePool.
*/
@Docker( image = "mongo",
@Docker( image = "org.apache.polygene:org.apache.polygene.internal.docker-mongo",
ports = @Port( exposed = 8801, inner = 27017),
newForEachCase = false
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
import org.junit.jupiter.api.Disabled;

@Disabled( "Waiting response from JOOQ to fix SQL generation. VARCHAR instead of CHAR")
@Docker( image = "mariadb", ports = @Port( exposed = 8801, inner = 3306 ),
@Docker( image = "mariadb",
ports = @Port( exposed = 8801, inner = 3306 ),
environments = {
@Environment( key = "MYSQL_ROOT_PASSWORD", value = "" ),
@Environment( key = "MYSQL_ALLOW_EMPTY_PASSWORD", value = "yes" ),
@Environment( key = "MYSQL_DATABASE", value = "jdbc_test_db" ),
@Environment( key = "MYSQL_ROOT_HOST", value = "172.17.0.1" ),
@Environment( key = "MYSQL_DATABASE", value = "jdbc_test_db" )
},
waitFor = @WaitFor( value = "mysqld: ready for connections", timeoutInMillis = 30000 ),
newForEachCase = false
Expand Down Expand Up @@ -92,6 +92,8 @@ public void assemble( ModuleAssembly module )
+ "&nullCatalogMeansCurrent=true&nullNamePatternMatchesAll=true" );
defaults.driver().set( "com.mysql.jdbc.Driver" );
defaults.enabled().set( true );
defaults.username().set("root");
defaults.password().set( "" );
// START SNIPPET: assembly
}
// END SNIPPET: assembly
Expand All @@ -100,7 +102,7 @@ static void sleep()
{
try
{
Thread.sleep( 500 );
Thread.sleep( 11500 );
}
catch( InterruptedException e )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
import org.junit.jupiter.api.Disabled;

@Disabled( "Waiting response from JOOQ to fix SQL generation. VARCHAR instead of CHAR")
@Docker( image = "mariadb", ports = @Port( exposed = 8801, inner = 3306),
@Docker( image = "org.apache.polygene:org.apache.polygene.internal.docker-mariadb",
ports = @Port( exposed = 8801, inner = 3306),
environments = {
@Environment( key = "MYSQL_ROOT_PASSWORD", value = ""),
@Environment(key = "MYSQL_ALLOW_EMPTY_PASSWORD", value = "yes"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
import org.junit.jupiter.api.Disabled;

@Disabled( "Waiting response from JOOQ to fix SQL generation. VARCHAR instead of CHAR")
@Docker( image = "mariadb", ports = @Port( exposed = 8801, inner = 3306),
@Docker( image = "org.apache.polygene:org.apache.polygene.internal.docker-mariadb",
ports = @Port( exposed = 8801, inner = 3306),
environments = {
@Environment( key = "MYSQL_ROOT_PASSWORD", value = ""),
@Environment(key = "MYSQL_ALLOW_EMPTY_PASSWORD", value = "yes"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
import org.junit.jupiter.api.Disabled;

@Disabled( "Waiting response from JOOQ to fix SQL generation. VARCHAR instead of CHAR")
@Docker( image = "mariadb", ports = @Port( exposed = 8801, inner = 3306),
@Docker( image = "org.apache.polygene:org.apache.polygene.internal.docker-mariadb",
ports = @Port( exposed = 8801, inner = 3306),
environments = {
@Environment( key = "MYSQL_ROOT_PASSWORD", value = ""),
@Environment(key = "MYSQL_ALLOW_EMPTY_PASSWORD", value = "yes"),
Expand Down

0 comments on commit ee29552

Please sign in to comment.