Skip to content

Remove Java-related configuration from build.gradle for Kotlin projects #211

@wilkinsona

Description

@wilkinsona

I don't think target and source compatibility make sense:

sourceCompatibility = 1.8
targetCompatibility = 1.8

I'm also not sure about the configuration of Eclipse's classpath, but I'd have to look at Kotlin's Eclipse plugin more closely to be sure.

eclipse {
    classpath {
         containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER')
         containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8'
    }
}

If the above isn't needed, then it might also be possible to stop applying the Eclipse plugin too.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions