Skip to content

Commit

Permalink
Some changes related to release (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
brfrn169 authored Jul 21, 2021
1 parent f6ff123 commit 4df4ed2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
13 changes: 12 additions & 1 deletion archive.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ apply plugin: 'maven'
apply plugin: 'signing'

artifacts {
archives javadocJar, sourcesJar, testJar
archives javadocJar, sourcesJar, testJar, testSourcesJar
}

signing {
sign configurations.archives
}

configurations.archives.artifacts.removeAll {
// exclude from the archives configuration all artifacts that were generated by distZip & distTar
def depTasks = it.getBuildDependencies().getDependencies()
depTasks.contains(distZip) || depTasks.contains(distTar)
}

uploadArchives {
repositories {
mavenDeployer {
Expand Down Expand Up @@ -48,6 +54,11 @@ uploadArchives {
name 'Hiroyuki Yamada'
email '[email protected]'
}
developer {
id 'brfrn169'
name 'Toshihiro Suzuki'
email '[email protected]'
}
}
}
}
Expand Down
16 changes: 12 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dependencies {
compile group: 'com.azure', name: 'azure-cosmos', version: '4.8.0'
compile group: 'org.jooq', name: 'jooq', version: '3.13.2'
compile group: 'software.amazon.awssdk', name: 'dynamodb', version: "${awssdkVersion}"
compile group: 'software.amazon.awssdk', name:'core', version: "${awssdkVersion}"
compile group: 'software.amazon.awssdk', name: 'core', version: "${awssdkVersion}"

compile group: 'org.apache.commons', name: 'commons-dbcp2', version: '2.8.0'
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.22'
Expand Down Expand Up @@ -85,8 +85,13 @@ task javadocJar(type: Jar) {
}

task testJar(type: Jar) {
classifier = 'tests'
from sourceSets.test.output
classifier = 'tests'
from sourceSets.test.output
}

task testSourcesJar(type: Jar) {
classifier = 'test-sources'
from sourceSets.test.allSource
}

task integrationTestCassandra(type: Test) {
Expand Down Expand Up @@ -127,4 +132,7 @@ archivesBaseName = "scalardb"
//version = "3.0.0"

// for archiving and uploading to maven central
//apply from: 'archive.gradle'
if (!project.gradle.startParameter.taskNames.isEmpty() &&
project.gradle.startParameter.taskNames[0].endsWith('uploadArchives')) {
apply from: 'archive.gradle'
}

0 comments on commit 4df4ed2

Please sign in to comment.