Skip to content

Commit

Permalink
Fixed maven publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasGorisse committed Dec 11, 2023
1 parent d347ab6 commit c665402
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,41 +16,41 @@ buildscript {

apply plugin: 'org.jetbrains.dokka'

afterEvaluate {
if (tasks.findByName('dokkaGfmPartial') == null) {
// If dokka isn't enabled on this module, skip
return
}
tasks.named('dokkaGfmPartial') {
dokkaSourceSets.configureEach {
reportUndocumented.set(true)
skipEmptyPackages.set(true)
skipDeprecated.set(true)
jdkVersion.set(8)

// Add Android SDK packages
noAndroidSdkLink.set(false)

// AndroidX + Compose docs
externalDocumentationLink {
url.set(new URL("https://developer.android.com/reference/"))
packageListUrl.set(new URL("https://developer.android.com/reference/androidx/package-list"))
}
externalDocumentationLink {
url.set(new URL("https://developer.android.com/reference/kotlin/"))
packageListUrl.set(new URL("https://developer.android.com/reference/kotlin/androidx/package-list"))
}

sourceLink {
localDirectory.set(project.file("src/main/kotlin"))
// URL showing where the source code can be accessed through the web browser
remoteUrl.set(new URL("https://github.com/sceneview/sceneview-android/blob/main/${project.name}/src/main/kotlin"))
// Suffix which is used to append the line number to the URL. Use #L for GitHub
remoteLineSuffix.set("#L")
}
}
}
}
//afterEvaluate {
// if (tasks.findByName('dokkaGfmPartial') == null) {
// // If dokka isn't enabled on this module, skip
// return
// }
// tasks.named('dokkaGfmPartial') {
// dokkaSourceSets.configureEach {
// reportUndocumented.set(true)
// skipEmptyPackages.set(true)
// skipDeprecated.set(true)
// jdkVersion.set(8)
//
// // Add Android SDK packages
// noAndroidSdkLink.set(false)
//
// // AndroidX + Compose docs
// externalDocumentationLink {
// url.set(new URL("https://developer.android.com/reference/"))
// packageListUrl.set(new URL("https://developer.android.com/reference/androidx/package-list"))
// }
// externalDocumentationLink {
// url.set(new URL("https://developer.android.com/reference/kotlin/"))
// packageListUrl.set(new URL("https://developer.android.com/reference/kotlin/androidx/package-list"))
// }
//
// sourceLink {
// localDirectory.set(project.file("src/main/kotlin"))
// // URL showing where the source code can be accessed through the web browser
// remoteUrl.set(new URL("https://github.com/sceneview/sceneview-android/blob/main/${project.name}/src/main/kotlin"))
// // Suffix which is used to append the line number to the URL. Use #L for GitHub
// remoteLineSuffix.set("#L")
// }
// }
// }
//}

import com.vanniktech.maven.publish.SonatypeHost

Expand Down

0 comments on commit c665402

Please sign in to comment.