serebit
10/07/2019, 7:26 PMKamil DolegÅo
10/07/2019, 7:28 PMserebit
10/07/2019, 7:29 PMserebit
10/07/2019, 7:30 PMKamil DolegÅo
10/07/2019, 7:31 PMdokka{
multiplatform{
global{
perPackageOption{
prefix = "com.example.internal"
suppress = true
}
}
}
}
Kamil DolegÅo
10/07/2019, 7:32 PMserebit
10/07/2019, 7:34 PMmultiplatform
block before I start running into errors. The multiplatform
scope doesn't have a member or extension function named global
, and using val global by getting
also errors. Using val global by creating {
does parse successfully, but running the Dokka task errors with List is empty.
Kamil DolegÅo
10/07/2019, 7:37 PMval global by creating
or register("global")
IIRC, but thatâs strange. Which version of the Kotlin plugin are you using?serebit
10/07/2019, 7:37 PMtasks.dokka {
multiplatform {
val global by creating {
perPackageOption {
prefix = "com.serebit.strife.internal"
suppress = true
}
}
}
}
serebit
10/07/2019, 7:37 PMserebit
10/07/2019, 7:39 PMKamil DolegÅo
10/07/2019, 7:40 PMserebit
10/07/2019, 7:42 PMdokka-upgrade
to origin, link is here: https://gitlab.com/serebit/strife/tree/dokka-upgradeserebit
10/07/2019, 7:43 PMKamil DolegÅo
10/07/2019, 7:45 PMKamil DolegÅo
10/07/2019, 7:48 PMKamil DolegÅo
10/07/2019, 7:48 PMKamil DolegÅo
10/07/2019, 7:48 PMKamil DolegÅo
10/07/2019, 7:48 PMKamil DolegÅo
10/07/2019, 7:49 PMtasks.dokka {
multiplatform {
val global by creating {
perPackageOption {
prefix = "com.serebit.strife.internal"
suppress = true
}
}
val jvm by creating {}
}
}
Kamil DolegÅo
10/07/2019, 7:52 PMKamil DolegÅo
10/07/2019, 7:52 PMserebit
10/07/2019, 7:53 PMKamil DolegÅo
10/07/2019, 7:54 PMKamil DolegÅo
10/07/2019, 8:08 PMjvm
here), you donât need the global
block. You can put the perPackageOption
block inside the jvm
one: val jvm by creating {
//here
}
It changes nothing but looks better IMHOserebit
10/07/2019, 8:10 PMCan't find node by signature
warnings, but the property that the node references is public, and doesn't use any dependencies.serebit
10/07/2019, 8:14 PMdokka-upgrade
branch.Kamil DolegÅo
10/07/2019, 8:15 PMKamil DolegÅo
10/07/2019, 8:16 PMTitle.text
serebit
10/07/2019, 8:16 PMKamil DolegÅo
10/07/2019, 8:18 PMserebit
10/07/2019, 9:03 PMclient
module. All of these references are failing to be resolved. What could be causing this?serebit
10/07/2019, 9:05 PMKamil DolegÅo
10/07/2019, 9:07 PMclient
module on the classpath of the other one, but I could look into that if you push the branch to the reposerebit
10/07/2019, 9:09 PMcommands
serebit
10/07/2019, 9:14 PMclient
module wasn't on the classpath. Got it fixed.Kamil DolegÅo
10/07/2019, 9:15 PMKamil DolegÅo
10/07/2019, 9:40 PMcommand
and client
modules, you can do something like this:
1) apply the dokka and kotlin plugins in the root directory of the project
2) in the root build.gradle.kts file (where you enabled those plugins) configure dokka accordingly:
tasks.dokka {
outputDirectory = "$rootDir/public/docs"
subProjects = listOf("client", "commands")
multiplatform {
register("jvm") {}
register("common") {
targets = listOf("jvm")
}
}
}
Kamil DolegÅo
10/07/2019, 9:41 PMKamil DolegÅo
10/07/2019, 9:46 PMKamil DolegÅo
11/28/2019, 2:16 PMskipEmptyPackages = true
to each passConfiguration
ðserebit
11/28/2019, 2:46 PM