Skip to content

Commit

Permalink
Merge pull request #3 from embulk/merge-embulk-guess-bzip2
Browse files Browse the repository at this point in the history
Merge embulk-guess-bzip2
  • Loading branch information
dmikurube authored Oct 6, 2023
2 parents ece6b99 + f26e742 commit 4daac4c
Show file tree
Hide file tree
Showing 6 changed files with 177 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
run: echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
if: matrix.os == 'windows-latest'
- name: Check
run: ./gradlew --stacktrace check
run: ./gradlew --stacktrace check embulk-guess-bzip2:check
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
distribution: "temurin"
cache: "gradle"
- name: Publish
run: ./gradlew --stacktrace publishMavenPublicationToMavenCentralRepository
run: ./gradlew --stacktrace publishMavenPublicationToMavenCentralRepository embulk-guess-bzip2:publishMavenPublicationToMavenCentralRepository
env:
ORG_GRADLE_PROJECT_ossrhUsername: ${{ vars.OSSRH_USERNAME }}
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# embulk-decoder-bzip2
# embulk-decoder-bzip2 / embulk-guess-bzip2

This is one of Embulk's "standard" plugins that are embedded in Embulk's executable binary distributions.

Expand Down
160 changes: 160 additions & 0 deletions embulk-guess-bzip2/build.gradle
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
}
13 changes: 13 additions & 0 deletions embulk-guess-bzip2/gradle.lockfile
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=
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
rootProject.name = "embulk-decoder-bzip2"
include "embulk-guess-bzip2"

0 comments on commit 4daac4c

Please sign in to comment.