项目作者: milos85vasic

项目描述 :
Simple wizard for creating Kotlin Gradle projects.
高级语言: Kotlin
项目地址: git://github.com/milos85vasic/Kotlin-Factory.git
创建时间: 2017-02-21T13:43:08Z
项目社区:https://github.com/milos85vasic/Kotlin-Factory

开源协议:Apache License 2.0

下载


Kotlin Factory

Simple wizard for creating Kotlin Gradle projects.

Usage

  1. java -jar KotlinFactory.jar ~/some_configuration.json

Configuration passed as json must be configured according the following template example:

  1. {
  2. "language": {
  3. "name": "kotlin",
  4. "version": "1.1.1"
  5. },
  6. "name": "My example project",
  7. "modules": [
  8. {
  9. "name": "Example module 1",
  10. "version": {
  11. "alpha": 0,
  12. "beta": 0,
  13. "primary": 1,
  14. "secondary": 0,
  15. "tertiary": 0
  16. },
  17. "group": "example_module_1",
  18. "package": "net.milosvasic.tryout.factory.kotlin",
  19. "plugins": {
  20. "collection": [
  21. {
  22. "name": "maven-deploy"
  23. },
  24. {
  25. "name": "or-else"
  26. }
  27. ]
  28. }
  29. },
  30. {
  31. "name": "Example module 2",
  32. "version": {
  33. "alpha": 0,
  34. "beta": 0,
  35. "primary": 1,
  36. "secondary": 0,
  37. "tertiary": 0
  38. },
  39. "group": "example_module_2",
  40. "package": "net.milosvasic.tryout.factory.kotlin"
  41. },
  42. {
  43. "name": "Example application module",
  44. "version": {
  45. "alpha": 0,
  46. "beta": 0,
  47. "primary": 1,
  48. "secondary": 0,
  49. "tertiary": 0
  50. },
  51. "isApplication": true,
  52. "group": "example_module_3",
  53. "package": "net.milosvasic.tryout.factory.kotlin",
  54. "credentials": [
  55. {
  56. "name": "default",
  57. "ftp": {
  58. "server": "special.example.com",
  59. "username": "special1",
  60. "password": "special1"
  61. }
  62. },
  63. {
  64. "name": "development",
  65. "ftp": {
  66. "server": "special.example.com",
  67. "username": "special1",
  68. "password": "special1"
  69. }
  70. },
  71. {
  72. "name": "production",
  73. "ftp": {
  74. "server": "special2.example.com",
  75. "username": "special2",
  76. "password": "special2"
  77. }
  78. }
  79. ]
  80. }
  81. ],
  82. "credentials": [
  83. {
  84. "name": "default",
  85. "ftp": {
  86. "server": "repo.other.com",
  87. "username": "something",
  88. "password": "something"
  89. }
  90. },
  91. {
  92. "name": "development",
  93. "ftp": {
  94. "server": "repo.something.other.net",
  95. "username": "username@something",
  96. "password": "some_pass"
  97. }
  98. },
  99. {
  100. "name": "production",
  101. "ftp": {
  102. "server": "repo.something.else.net",
  103. "username": "user",
  104. "password": "pass"
  105. }
  106. }
  107. ]
  108. }

To support git repository add the following into project object with proper data:

  1. {
  2. "git": {
  3. "cloneUrl": "https://user@github.com/some_user/example_repo.git"
  4. }
  5. }

NOTE: Git functionality is intended to be used with plain repo that waits for it’s first initial project commit.
If repo is not empty, since we will clone it, it may happen some conflicts to occur.