13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- apply plugin : ' android- library'
16
+ apply plugin : ' com. android. library'
17
17
apply plugin : ' android-maven'
18
18
apply plugin : ' signing'
19
19
@@ -22,10 +22,10 @@ dependencies {
22
22
}
23
23
24
24
android {
25
- buildToolsVersion ' 19.1 .0'
25
+ buildToolsVersion ' 20.0 .0'
26
26
compileSdkVersion 19
27
27
defaultConfig {
28
- versionCode 7
28
+ versionCode 10
29
29
versionName = project. version
30
30
minSdkVersion 8
31
31
targetSdkVersion 19
@@ -37,36 +37,39 @@ android {
37
37
}
38
38
}
39
39
40
- group = " de.keyboardsurfer.android.widget"
41
- artifactId = " crouton"
40
+ group = ' de.keyboardsurfer.android.widget'
41
+ artifactId = ' crouton'
42
42
43
43
android. libraryVariants. all { variant ->
44
44
def name = variant. buildType. name
45
45
if (name. equals(com.android.builder.core.BuilderConstants . DEBUG )) {
46
46
return ; // Skip debug builds.
47
47
}
48
48
task(" javadoc${ variant.name.capitalize()} " , type : Javadoc ) {
49
- description " Generates Javadoc for $variant . name . "
49
+ description ' Generates Javadoc for $variant.name.'
50
50
source = variant. javaCompile. source
51
- ext. androidJar = " ${ android.sdkDirectory} /platforms/${ android.compileSdkVersion} /android.jar"
51
+ ext. androidJar = ' ${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar'
52
52
classpath = files(variant. javaCompile. classpath. files) + files(ext. androidJar)
53
53
}
54
54
55
55
task(" bundleJavadoc${ variant.name.capitalize()} " , type : Jar ) {
56
- description " Bundles Javadoc into zip for $variant . name . "
57
- classifier = " javadoc"
56
+ description ' Bundles Javadoc into zip for $variant.name'
57
+ classifier = ' javadoc'
58
58
from tasks[" javadoc${ variant.name.capitalize()} " ]
59
59
}
60
60
61
61
}
62
62
63
63
task sourcesJar (type : Jar ) {
64
64
classifier = ' sources'
65
- from android. sourceSets. main. java
65
+ from android. sourceSets. main. java. srcDirs
66
66
}
67
67
68
68
task jar (type : Jar ) {
69
- from ' build/classes/release'
69
+ from ' build/intermediates/classes/release'
70
+ exclude ' **/BuildConfig.class'
71
+ exclude ' **/R.class'
72
+ exclude ' de/keyboardsurfer/mobile/'
70
73
}
71
74
72
75
task javadocJar (type : Jar , dependsOn : " javadocRelease" ) {
@@ -82,6 +85,7 @@ artifacts {
82
85
83
86
signing {
84
87
sign configurations. archives
88
+ sign configurations. compile
85
89
}
86
90
87
91
uploadArchives {
0 commit comments