Skip to content

Commit eacf262

Browse files
committed
javadoc task fixed.
1 parent 55b4242 commit eacf262

File tree

3 files changed

+39
-11
lines changed

3 files changed

+39
-11
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="androidx-colorpicker:library [javadoc]" type="GradleRunConfiguration" factoryName="Gradle">
3+
<ExternalSystemSettings>
4+
<option name="executionName" />
5+
<option name="externalProjectPath" value="$PROJECT_DIR$/library" />
6+
<option name="externalSystemIdString" value="GRADLE" />
7+
<option name="scriptParameters" value="--stacktrace" />
8+
<option name="taskDescriptions">
9+
<list />
10+
</option>
11+
<option name="taskNames">
12+
<list>
13+
<option value="javadoc" />
14+
</list>
15+
</option>
16+
<option name="vmOptions" />
17+
</ExternalSystemSettings>
18+
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
19+
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
20+
<DebugAllEnabled>false</DebugAllEnabled>
21+
<method v="2" />
22+
</configuration>
23+
</component>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# androidx-colorpicker
22

33
[![](https://jitci.com/gh/syslogic/androidx-colorpicker/svg)](https://jitci.com/gh/syslogic/androidx-colorpicker) [![Release](https://jitpack.io/v/syslogic/androidx-colorpicker.svg)](https://jitpack.io/#io.syslogic/androidx-colorpicker)
4-
[![MIT License](https://img.shields.io/github/license/syslogic/androidx-colorpicker)](https://github.com/syslogic/androidx-colorpicker/blob/master/LICENSE)
4+
[![MIT License](https://img.shields.io/github/license/syslogic/androidx-colorpicker)](https://github.com/syslogic/androidx-colorpicker/blob/master/LICENSE)<!-- @IGNORE PREVIOUS: link -->
55

66
A modern color-picker library for Android, which is compatible with Jetpack Navigation and Jetpack Compose.<br/><br/>
77
The library is generally available on JitPack; either by version tag or `master-SNAPSHOT`.<br/>

library/build.gradle

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ android {
1717
targetSdk target_sdk
1818
minSdk min_sdk
1919
}
20+
21+
sourceSets.main.java.srcDirs = [ "src/main/java" ]
2022

2123
compileOptions {
2224
sourceCompatibility JavaVersion.VERSION_17
@@ -100,14 +102,15 @@ tasks.register('javadoc', Javadoc) {
100102
source = android.sourceSets.main.java.srcDirs
101103
destinationDir = file("${project.buildDir}/outputs/javadoc/")
102104
configurations.implementation.setCanBeResolved(true)
105+
103106
classpath = files(new File("${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"))
104-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
107+
android.getBootClasspath().forEach{classpath += fileTree(it) }
105108
classpath += fileTree(dir: "$buildDir/tmp/aarsToJars/")
106109
classpath += configurations.implementation
107-
exclude "**/BuildConfig.java", "**/R.java"
110+
exclude "**/BuildConfig.java", "**/R.java", "**/*.kt"
108111
failOnError false
109112

110-
// options.verbose()
113+
options.verbose()
111114
// javadoc: warning - The code being documented uses modules but the packages
112115
// defined in https://developer.android.com/reference/ are in the unnamed module.
113116
options.links "https://docs.oracle.com/en/java/javase/17/docs/api/"
@@ -118,13 +121,15 @@ tasks.register('javadoc', Javadoc) {
118121
doFirst {
119122

120123
// extract AAR files
121-
configurations.implementation.filter { it.name.endsWith('.aar') }.each { aar ->
122-
copy {
123-
from zipTree(aar)
124-
include "**/classes.jar"
125-
into "$buildDir/tmp/aarsToJars/${aar.name.replace('.aar', '')}/"
126-
}
127-
}
124+
configurations.implementation
125+
.filter { it.name.endsWith('.aar') }
126+
.each { aar ->
127+
copy {
128+
from zipTree(aar)
129+
include "**/classes.jar"
130+
into "$buildDir/tmp/aarsToJars/${aar.name.replace('.aar', '')}/"
131+
}
132+
}
128133

129134
// provide JAR, which contains the generated data-binding classes
130135
def aar_main = new File("$buildDir/intermediates/aar_main_jar")

0 commit comments

Comments
 (0)