Skip to content

Commit

Permalink
build and upload sources jar
Browse files Browse the repository at this point in the history
  • Loading branch information
simomat committed Oct 21, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 2ddf012 commit 1725f76
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -32,13 +32,23 @@ dependencies {
testCompile('org.mockito:mockito-core:2.1.0-RC.1')
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives sourcesJar
}

publishing {
publications {
StreamjoinPublication(MavenPublication) {
from components.java
groupId 'de.infonautika.streamjoin'
artifactId 'streamjoin'
version '1.0.0'
artifact sourcesJar
version "${project.version}"
}
}
}
@@ -50,7 +60,6 @@ bintray {

dryRun = true
publish = false
override = false

pkg {
repo = 'maven'
@@ -64,7 +73,7 @@ bintray {
githubReleaseNotesFile = 'README.md'

version {
name = '1.0.0'
name = "${project.version}"
desc = ' Java 8 Stream joins'
released = new Date()
vcsTag = '1.0.0'

2 comments on commit 1725f76

@dedels
Copy link

@dedels dedels commented on 1725f76 Oct 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This project is exactly what I'm looking for with Java streams!
Are there any other comparable projects?

@simomat
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. Hm no, didn't find any. An acceptable alternate approach seems to be the use of .flatmap() like here, but I find it rather implicit and potentially less efficient and comfortable.

Please sign in to comment.