build.gradle 908 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. buildscript {
  2. repositories {
  3. maven {
  4. url "https://oss.sonatype.org/content/repositories/snapshots/"
  5. }
  6. maven {
  7. url 'http://dl.bintray.com/jetbrains/intellij-plugin-service'
  8. }
  9. mavenCentral()
  10. }
  11. dependencies {
  12. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  13. }
  14. }
  15. allprojects {
  16. group 'com.alibaba.p3c.idea'
  17. apply plugin: 'java'
  18. apply plugin: 'kotlin'
  19. apply plugin: 'maven-publish'
  20. sourceCompatibility = 1.8
  21. compileJava.options.encoding = 'UTF-8'
  22. configurations.all {
  23. resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
  24. }
  25. repositories {
  26. jcenter()
  27. mavenCentral()
  28. }
  29. dependencies {
  30. compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
  31. testCompile group: 'junit', name: 'junit', version: '4.11'
  32. }
  33. }