-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from embulk/merge-embulk-guess-bzip2
Merge embulk-guess-bzip2
- Loading branch information
Showing
6 changed files
with
177 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
plugins { | ||
id "java" | ||
id "maven-publish" | ||
id "signing" | ||
id "org.embulk.embulk-plugins" version "0.5.5" | ||
id "checkstyle" | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
group = rootProject.group | ||
version = rootProject.version | ||
description = "Guesses if an input is bzip2-encoded." | ||
|
||
configurations { | ||
compileClasspath.resolutionStrategy.activateDependencyLocking() | ||
runtimeClasspath.resolutionStrategy.activateDependencyLocking() | ||
} | ||
|
||
tasks.withType(JavaCompile) { | ||
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" | ||
options.encoding = "UTF-8" | ||
} | ||
|
||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(8) | ||
} | ||
|
||
withJavadocJar() | ||
withSourcesJar() | ||
} | ||
|
||
dependencies { | ||
compileOnly "org.embulk:embulk-spi:0.11" | ||
|
||
implementation "org.embulk:embulk-util-config:0.3.4" | ||
} | ||
|
||
embulkPlugin { | ||
mainClass = "org.embulk.guess.bzip2.Bzip2GuessPlugin" | ||
category = "guess" | ||
type = "bzip2" | ||
} | ||
|
||
jar { | ||
metaInf { | ||
from rootProject.file("LICENSE") | ||
} | ||
} | ||
|
||
sourcesJar { | ||
metaInf { | ||
from rootProject.file("LICENSE") | ||
} | ||
} | ||
|
||
javadocJar { | ||
metaInf { | ||
from rootProject.file("LICENSE") | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
groupId = project.group | ||
artifactId = project.name | ||
|
||
from components.java | ||
// javadocJar and sourcesJar are added by java.withJavadocJar() and java.withSourcesJar() above. | ||
// See: https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/JavaPluginExtension.html | ||
|
||
pom { // https://central.sonatype.org/pages/requirements.html | ||
packaging "jar" | ||
|
||
name = project.name | ||
description = project.description | ||
url = "https://www.embulk.org/" | ||
|
||
licenses { | ||
license { | ||
// http://central.sonatype.org/pages/requirements.html#license-information | ||
name = "The Apache License, Version 2.0" | ||
url = "https://www.apache.org/licenses/LICENSE-2.0.txt" | ||
distribution = "repo" | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
name = "Dai MIKURUBE" | ||
email = "[email protected]" | ||
} | ||
} | ||
|
||
scm { | ||
connection = "scm:git:git://github.com/embulk/embulk-decoder-bzip2.git" | ||
developerConnection = "scm:git:[email protected]:embulk/embulk-decoder-bzip2.git" | ||
url = "https://github.com/embulk/embulk-decoder-bzip2" | ||
} | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
maven { // publishMavenPublicationToMavenCentralRepository | ||
name = "mavenCentral" | ||
if (project.version.endsWith("-SNAPSHOT")) { | ||
url "https://oss.sonatype.org/content/repositories/snapshots" | ||
} else { | ||
url "https://oss.sonatype.org/service/local/staging/deploy/maven2" | ||
} | ||
|
||
credentials { | ||
username = project.hasProperty("ossrhUsername") ? ossrhUsername : "" | ||
password = project.hasProperty("ossrhPassword") ? ossrhPassword : "" | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
if (project.hasProperty("signingKey") && project.hasProperty("signingPassword")) { | ||
logger.lifecycle("Signing with an in-memory key.") | ||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
} | ||
sign publishing.publications.maven | ||
} | ||
|
||
test { | ||
testLogging { | ||
events "passed", "skipped", "failed", "standardOut", "standardError" | ||
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL | ||
showCauses = true | ||
showExceptions = true | ||
showStackTraces = true | ||
showStandardStreams = true | ||
outputs.upToDateWhen { false } | ||
} | ||
} | ||
|
||
tasks.withType(Checkstyle) { | ||
reports { | ||
// Not to skip up-to-date checkstyles. | ||
outputs.upToDateWhen { false } | ||
} | ||
} | ||
|
||
checkstyle { | ||
toolVersion "8.7" | ||
configFile = file("${rootProject.projectDir}/config/checkstyle/checkstyle.xml") | ||
configProperties = [ | ||
"checkstyle.config.path": file("${rootProject.projectDir}/config/checkstyle") | ||
] | ||
ignoreFailures = false | ||
maxWarnings = 0 // https://github.com/gradle/gradle/issues/881 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This is a Gradle generated file for dependency locking. | ||
# Manual edits can break the build and are not advised. | ||
# This file is expected to be part of source control. | ||
com.fasterxml.jackson.core:jackson-annotations:2.6.7=compileClasspath,runtimeClasspath | ||
com.fasterxml.jackson.core:jackson-core:2.6.7=compileClasspath,runtimeClasspath | ||
com.fasterxml.jackson.core:jackson-databind:2.6.7.5=compileClasspath,runtimeClasspath | ||
com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.6.7=compileClasspath,runtimeClasspath | ||
javax.validation:validation-api:1.1.0.Final=compileClasspath,runtimeClasspath | ||
org.embulk:embulk-spi:0.11=compileClasspath | ||
org.embulk:embulk-util-config:0.3.4=compileClasspath,runtimeClasspath | ||
org.msgpack:msgpack-core:0.8.24=compileClasspath | ||
org.slf4j:slf4j-api:2.0.7=compileClasspath | ||
empty= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
rootProject.name = "embulk-decoder-bzip2" | ||
include "embulk-guess-bzip2" |