Advertisement
hnOsmium0001

Untitled

Dec 27th, 2019
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. I did the following:
  2. 1. add a testmod source set (probably could use test)
  3. 2. a configurations to extend from main
  4. ```
  5. configurations {
  6. testmodCompile.extendsFrom(compile)
  7. testmodCompileOnly.extendsFrom(compileOnly)
  8. testmodRuntimeOnly.extendsFrom(runtimeOnly)
  9. }
  10. ```
  11. 3. add the module to run config
  12. ```
  13. // In minecraft.runs.(client, server, and optionally data).mods
  14. mainmod_modid {
  15. source sourceSets.main
  16. }
  17. testmod_modid {
  18. source sourceSets.testmod
  19. }
  20. ```
  21. 4. refresh gradle + genIntellijRuns
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement