build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. apply plugin: 'com.huawei.ohos.app'
  3. //For instructions on signature configuration, see https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ide_debug_device-0000001053822404#section1112183053510
  4. ohos {
  5. compileSdkVersion 6
  6. defaultConfig {
  7. compatibleSdkVersion 5
  8. }
  9. }
  10. buildscript {
  11. repositories {
  12. maven {
  13. url 'https://repo.huaweicloud.com/repository/maven/'
  14. }
  15. maven {
  16. url 'https://developer.huawei.com/repo/'
  17. }
  18. maven {
  19. url 'https://s01.oss.sonatype.org/content/repositories/releases/'
  20. }
  21. }
  22. dependencies {
  23. classpath 'com.huawei.ohos:hap:3.0.3.4'
  24. classpath 'com.huawei.ohos:decctest:1.2.6.0'
  25. }
  26. }
  27. allprojects {
  28. repositories {
  29. mavenCentral()
  30. tasks.withType(JavaCompile) {
  31. options.compilerArgs += ["-AeventBusIndex=org.greenrobot.eventbus.MyEventBusIndex"]
  32. }
  33. maven {
  34. url 'https://repo.huaweicloud.com/repository/maven/'
  35. }
  36. maven {
  37. url 'https://developer.huawei.com/repo/'
  38. }
  39. maven {
  40. url 'https://s01.oss.sonatype.org/content/repositories/releases/'
  41. }
  42. }
  43. }