plugins {
    id 'jvm-component'
    id 'java-lang'
}

model {
    components {
        main(JvmLibrarySpec) {
            targetPlatform 'java5'
            targetPlatform 'java6'
        }
        main {
            binaries.java6MainJar {
                sources {
                    java6(JavaSourceSet) {
                        source.srcDir 'src/main/java6'
                    }
                }
            }
        }
   }
}
