plugins Ġ{ ĊĠĠĠ Ġid (" maven ") ĊĠĠĠ Ġid (" org . spongepowered . plugin ") Ġversion Ġ" 0 . 9 . 0 " Ċ } Ċ Ċ version Ġ= Ġextra [" plugin Version "] Ġas ĠString Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġcompile (" org . spongepowered : sponge api : 7 . 1 . 0 ") Ċ } Ċ Ċ sponge . plugin . id Ġ= Ġextra [" plugin Id "] Ġas ĠString Ċ Ċ tasks . with Type < Jar > Ġ{ ĊĠĠĠ Ġbase Name Ġ= Ġ" File Invent ories - Sp onge " Ċ } Ċ Ċ val Ġsources Jar Ġ= Ġtasks . create (" sources Jar ", ĠJar :: class ) Ġ{ ĊĠĠĠ Ġdepends On (" classes ") ĊĠĠĠ Ġclassifier Ġ= Ġ" sources " ĊĠĠĠ Ġafter Evaluate Ġ{ ĊĠĠĠĠĠĠĠ Ġfrom ( the < Source Set Container >() [" main "]. all Source ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ val Ġjavadoc Jar Ġ= Ġtasks . create (" javadoc Jar ", ĠJar :: class ) Ġ{ ĊĠĠĠ Ġdepends On (" javadoc ") ĊĠĠĠ Ġclassifier Ġ= Ġ" javadoc " ĊĠĠĠ Ġfrom ( tasks . get ByName (" javadoc ", ĠJ avadoc :: class ). destination Dir ) Ċ } Ċ Ċ artifacts Ġ{ ĊĠĠĠ Ġadd (" compile ", Ġsources Jar ) ĊĠĠĠ Ġadd (" compile ", Ġjavadoc Jar ) Ċ } Ċ