We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using the OpenGL sample and I edited it to use a more recent version of kotlin
Here is my build.gradle.kts code:
build.gradle.kts
import org.gradle.internal.os.OperatingSystem; import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget plugins { kotlin("multiplatform") version "1.6.21" } repositories { maven("https://maven.pkg.github.com/Dominaezzz/kgl") { credentials { username = "USERNAME" password = "TOKEN" } } } val kglVersion = "0.1.11" kotlin { val os = OperatingSystem.current() if (os.isWindows) mingwX64() if (os.isLinux) linuxX64() if (os.isMacOsX) macosX64() targets.withType<KotlinNativeTarget> { binaries { executable { entryPoint = "main" } } compilations { "main" { defaultSourceSet { kotlin.srcDir("src/main/kotlin") resources.srcDir("src/main/resources") } dependencies { implementation("com.kgl:kgl-glfw:$kglVersion") implementation("com.kgl:kgl-glfw-static:$kglVersion") implementation("com.kgl:kgl-opengl:$kglVersion") implementation("com.kgl:kgl-stb:$kglVersion") } } "test" { defaultSourceSet { kotlin.srcDir("src/test/kotlin") resources.srcDir("src/test/resources") } } } } sourceSets { // Note: To enable common source sets please comment out "kotlin.import.noCommonSourceSets" property // in gradle.properties file and re-import your project in IDE. } sourceSets.all { languageSettings.apply { enableLanguageFeature("InlineClasses") optIn("kotlin.ExperimentalUnsignedTypes") } } }
The text was updated successfully, but these errors were encountered:
Looks like you're missing mavenCentral() in your repositories block.
mavenCentral()
repositories
Sorry, something went wrong.
Oh... my bad. Do I need to be on a specific OS like Linux to compile for Linux?
No branches or pull requests
I am using the OpenGL sample and I edited it to use a more recent version of kotlin
Here is my
build.gradle.kts
code:The text was updated successfully, but these errors were encountered: