@Description(summary = "Create h2client.jar with only the remote JDBC implementation.") fun jarClient() { compile(true, true, false) var files: FileList? = files("temp").exclude("temp/org/h2/build/*").exclude("temp/org/h2/dev/*") .exclude("temp/org/h2/jaqu/*").exclude("temp/org/h2/java/*") .exclude("temp/org/h2/jcr/*").exclude("temp/org/h2/mode/*") .exclude("temp/org/h2/samples/*").exclude("temp/org/h2/test/*").exclude("*.bat") .exclude("*.sh").exclude("*.txt").exclude("*.DS_Store") files = excludeTestMetaInfFiles(files) val kb: Long = jar("bin/h2-client" + getJarSuffix(), files, "temp") if (kb < 350 || kb > 450) { throw RuntimeException("Expected file size 350 - 450 KB, got: $kb") } }
Create the h2client.jar . This only contains the remote JDBC implementation .