Skip to content

Commit

Permalink
Include generated sources in published artifact
Browse files Browse the repository at this point in the history
fixes #1407
  • Loading branch information
dilipkrish committed Sep 25, 2016
1 parent 71876f8 commit 32e6469
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions gradle/publishing.gradle
Expand Up @@ -80,9 +80,12 @@ ext {
}
}

def generatedSources = "$buildDir/generated/source/apt/main"

task packageSources(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
from generatedSources
}

task javadocJar(type: Jar, dependsOn: javadoc) {
Expand Down
2 changes: 1 addition & 1 deletion springfox-swagger1/build.gradle
@@ -1,5 +1,5 @@
plugins {
id "net.ltgt.apt" version "0.6"
id "net.ltgt.apt" version "0.9"
}

ext {
Expand Down
2 changes: 1 addition & 1 deletion springfox-swagger2/build.gradle
@@ -1,5 +1,5 @@
plugins {
id "net.ltgt.apt" version "0.6"
id "net.ltgt.apt" version "0.9"
}

ext {
Expand Down

0 comments on commit 32e6469

Please sign in to comment.