You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CoreProperties.java 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2019 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. package org.sonar.api;
  21. import org.sonar.api.batch.fs.FileSystem;
  22. import org.sonar.api.platform.Server;
  23. /**
  24. * Non-exhaustive list of constants of core properties.
  25. *
  26. * @since 1.11
  27. */
  28. public interface CoreProperties {
  29. /**
  30. * @since 3.0
  31. */
  32. String ENCRYPTION_SECRET_KEY_PATH = "sonar.secretKeyPath";
  33. /**
  34. * @since 2.11
  35. */
  36. String CATEGORY_GENERAL = "general";
  37. /**
  38. * @since 4.0
  39. */
  40. String SUBCATEGORY_DATABASE_CLEANER = "databaseCleaner";
  41. /**
  42. * @since 7.6
  43. */
  44. String SUBCATEGORY_MODULES = "subProjects";
  45. /**
  46. * @since 4.0
  47. */
  48. String SUBCATEGORY_DUPLICATIONS = "duplications";
  49. /**
  50. * @since 6.6
  51. */
  52. String SUBCATEGORY_BRANCHES = "Branches";
  53. /**
  54. * @since 4.0
  55. */
  56. String SUBCATEGORY_DIFFERENTIAL_VIEWS = "differentialViews";
  57. /**
  58. * @since 5.1
  59. */
  60. String SUBCATEGORY_LOOKNFEEL = "looknfeel";
  61. /**
  62. * @since 5.1
  63. */
  64. String SUBCATEGORY_ISSUES = "issues";
  65. /**
  66. * @since 4.0
  67. */
  68. String SUBCATEGORY_L10N = "localization";
  69. /**
  70. * @since 7.2
  71. */
  72. String CATEGORY_EXTERNAL_ISSUES = "externalIssues";
  73. /**
  74. * @since 2.11
  75. */
  76. String CATEGORY_CODE_COVERAGE = "codeCoverage";
  77. /**
  78. * @since 2.11
  79. */
  80. String CATEGORY_SECURITY = "security";
  81. /**
  82. * @since 2.11
  83. * @deprecated since 6.0
  84. */
  85. @Deprecated
  86. String CATEGORY_JAVA = "java";
  87. /**
  88. * @since 3.3
  89. */
  90. String CATEGORY_EXCLUSIONS = "exclusions";
  91. /**
  92. * @since 4.0
  93. */
  94. String SUBCATEGORY_FILES_EXCLUSIONS = "files";
  95. /**
  96. * @since 4.0
  97. */
  98. String SUBCATEGORY_DUPLICATIONS_EXCLUSIONS = "duplications";
  99. /**
  100. * @since 4.0
  101. */
  102. String SUBCATEGORY_COVERAGE_EXCLUSIONS = "coverage";
  103. /**
  104. * @since 6.1
  105. */
  106. String SUBCATEGORY_EMAIL = "email";
  107. /**
  108. * @since 3.7
  109. */
  110. String CATEGORY_LICENSES = "licenses";
  111. /**
  112. * @since 4.0
  113. */
  114. String CATEGORY_TECHNICAL_DEBT = "technicalDebt";
  115. /* Global settings */
  116. String SONAR_HOME = "SONAR_HOME";
  117. String PROJECT_VERSION_PROPERTY = "sonar.projectVersion";
  118. String BUILD_STRING_PROPERTY = "sonar.buildString";
  119. /**
  120. * @since 2.6
  121. */
  122. String PROJECT_KEY_PROPERTY = "sonar.projectKey";
  123. /**
  124. * @since 2.6
  125. */
  126. String PROJECT_NAME_PROPERTY = "sonar.projectName";
  127. /**
  128. * @since 2.6
  129. */
  130. String PROJECT_DESCRIPTION_PROPERTY = "sonar.projectDescription";
  131. /**
  132. * To determine value of this property use {@link FileSystem#encoding()}.
  133. *
  134. * @since 2.6
  135. */
  136. String ENCODING_PROPERTY = "sonar.sourceEncoding";
  137. /**
  138. * Value format is yyyy-MM-dd
  139. */
  140. String PROJECT_DATE_PROPERTY = "sonar.projectDate";
  141. /**
  142. * @since 6.6
  143. */
  144. String LONG_LIVED_BRANCHES_REGEX = "sonar.branch.longLivedBranches.regex";
  145. /* Exclusions */
  146. String PROJECT_INCLUSIONS_PROPERTY = "sonar.inclusions";
  147. String PROJECT_EXCLUSIONS_PROPERTY = "sonar.exclusions";
  148. /* Coverage exclusions */
  149. String PROJECT_COVERAGE_EXCLUSIONS_PROPERTY = "sonar.coverage.exclusions";
  150. /**
  151. * @since 3.3
  152. */
  153. String PROJECT_TEST_INCLUSIONS_PROPERTY = "sonar.test.inclusions";
  154. String PROJECT_TEST_EXCLUSIONS_PROPERTY = "sonar.test.exclusions";
  155. String GLOBAL_EXCLUSIONS_PROPERTY = "sonar.global.exclusions";
  156. String GLOBAL_TEST_EXCLUSIONS_PROPERTY = "sonar.global.test.exclusions";
  157. /* Sonar Core */
  158. String CORE_FORCE_AUTHENTICATION_PROPERTY = "sonar.forceAuthentication";
  159. boolean CORE_FORCE_AUTHENTICATION_DEFAULT_VALUE = false;
  160. /**
  161. * @deprecated since 6.3. This feature is not supported anymore
  162. * @see <a href="https://jira.sonarsource.com/browse/SONAR-7762">SONAR-7762/a>
  163. */
  164. @Deprecated
  165. String CORE_ALLOW_USERS_TO_SIGNUP_PROPERTY = "sonar.allowUsersToSignUp";
  166. /**
  167. * @deprecated since 6.4. The default group is hardcoded to 'sonar-users'
  168. * @see <a href="https://jira.sonarsource.com/browse/SONAR-9014">SONAR-9014/a>
  169. */
  170. @Deprecated
  171. String CORE_DEFAULT_GROUP = "sonar.defaultGroup";
  172. /**
  173. * @deprecated since 6.4. The default group is hardcoded to 'sonar-users'
  174. * @see <a href="https://jira.sonarsource.com/browse/SONAR-9014">SONAR-9014/a>
  175. */
  176. @Deprecated
  177. String CORE_DEFAULT_GROUP_DEFAULT_VALUE = "sonar-users";
  178. boolean CORE_ALLOW_USERS_TO_SIGNUP_DEAULT_VALUE = false;
  179. /**
  180. * @deprecated since 2.14. See http://jira.sonarsource.com/browse/SONAR-3153. Replaced by {@link #CORE_AUTHENTICATOR_REALM}.
  181. */
  182. @Deprecated
  183. String CORE_AUTHENTICATOR_CLASS = "sonar.authenticator.class";
  184. /**
  185. * @since 2.14
  186. * @deprecated since 7.1, this setting should not be used by plugin
  187. */
  188. @Deprecated
  189. String CORE_AUTHENTICATOR_REALM = "sonar.security.realm";
  190. /**
  191. * @deprecated since 7.1, this setting should not be used by plugin
  192. */
  193. @Deprecated
  194. String CORE_AUTHENTICATOR_IGNORE_STARTUP_FAILURE = "sonar.authenticator.ignoreStartupFailure";
  195. /**
  196. * @deprecated since 6.3. This feature is not supported anymore
  197. * @see <a href="https://jira.sonarsource.com/browse/SONAR-8208">SONAR-8208/a>
  198. */
  199. @Deprecated
  200. String CORE_AUTHENTICATOR_CREATE_USERS = "sonar.authenticator.createUsers";
  201. /**
  202. * @since 3.6
  203. * @deprecated since 5.4. This feature is not supported anymore. See http://jira.sonarsource.com/browse/SONAR-7219
  204. */
  205. @Deprecated
  206. String CORE_AUTHENTICATOR_UPDATE_USER_ATTRIBUTES = "sonar.security.updateUserAttributes";
  207. String SERVER_ID = "sonar.core.id";
  208. // format is yyyy-MM-dd'T'HH:mm:ssZ
  209. String SERVER_STARTTIME = "sonar.core.startTime";
  210. /**
  211. * This property defines the SonarQubeServer base url, such as <i>http://yourhost.yourdomain/sonar</i>.
  212. * When this property is not set, the base url of the SonarQube server is provided by {@link Server#getURL()}.
  213. *
  214. * @since 2.10
  215. */
  216. String SERVER_BASE_URL = "sonar.core.serverBaseURL";
  217. /**
  218. * @see #SERVER_BASE_URL
  219. * @since 2.10
  220. * @deprecated since 5.6. This constant default value is incorrect if a host and/or a port and/or a context have been configured.
  221. * The correct default value when {@link #SERVER_BASE_URL} is not set is provided by {@link Server#getURL()}.
  222. */
  223. @Deprecated
  224. String SERVER_BASE_URL_DEFAULT_VALUE = "http://localhost:9000";
  225. /**
  226. * @since 2.11
  227. * @deprecated since 6.7
  228. */
  229. @Deprecated
  230. String CPD_CROSS_PROJECT = "sonar.cpd.cross_project";
  231. /**
  232. * @since 3.5
  233. */
  234. String CPD_EXCLUSIONS = "sonar.cpd.exclusions";
  235. /**
  236. * @since 2.11
  237. * @deprecated in 6.7. See {@link Server#getPermanentServerId()}
  238. */
  239. @Deprecated
  240. String ORGANISATION = "sonar.organisation";
  241. /**
  242. * @since 2.11
  243. * @deprecated in 6.7. See {@link Server#getPermanentServerId()}
  244. */
  245. @Deprecated
  246. String PERMANENT_SERVER_ID = "sonar.server_id";
  247. /**
  248. * @since 2.11
  249. * @deprecated in 6.7. See {@link Server#getPermanentServerId()}
  250. */
  251. @Deprecated
  252. String SERVER_ID_IP_ADDRESS = "sonar.server_id.ip_address";
  253. /**
  254. * @since 3.3
  255. */
  256. String LINKS_HOME_PAGE = "sonar.links.homepage";
  257. /**
  258. * @since 3.3
  259. */
  260. String LINKS_CI = "sonar.links.ci";
  261. /**
  262. * @since 3.3
  263. */
  264. String LINKS_ISSUE_TRACKER = "sonar.links.issue";
  265. /**
  266. * @since 3.3
  267. */
  268. String LINKS_SOURCES = "sonar.links.scm";
  269. /**
  270. * @since 3.3
  271. * @deprecated since 7.1, developer connection link is no more feed
  272. */
  273. @Deprecated
  274. String LINKS_SOURCES_DEV = "sonar.links.scm_dev";
  275. /**
  276. * @since 3.4
  277. */
  278. String LOGIN = "sonar.login";
  279. /**
  280. * @since 3.4
  281. */
  282. String PASSWORD = "sonar.password";
  283. /**
  284. * @since 3.5
  285. * @deprecated since 7.6
  286. */
  287. @Deprecated
  288. String TASK = "sonar.task";
  289. /**
  290. * @since 3.6
  291. * @deprecated since 7.6
  292. */
  293. @Deprecated
  294. String SCAN_TASK = "scan";
  295. /**
  296. * @since 3.6
  297. */
  298. // TODO remove?
  299. String PROFILING_LOG_PROPERTY = "sonar.showProfiling";
  300. /**
  301. * @since 4.0
  302. * @deprecated replaced in 5.2 by the permission 'provisioning'
  303. */
  304. @Deprecated
  305. String CORE_PREVENT_AUTOMATIC_PROJECT_CREATION = "sonar.preventAutoProjectCreation";
  306. /**
  307. * @since 4.0
  308. */
  309. String WORKING_DIRECTORY = "sonar.working.directory";
  310. String WORKING_DIRECTORY_DEFAULT_VALUE = ".sonar";
  311. /**
  312. * @since 5.2
  313. */
  314. String GLOBAL_WORKING_DIRECTORY = "sonar.globalWorking.directory";
  315. String GLOBAL_WORKING_DIRECTORY_DEFAULT_VALUE = "";
  316. /**
  317. * @since 4.2
  318. * @deprecated no more used since 5.5
  319. */
  320. @Deprecated
  321. String CORE_AUTHENTICATOR_LOCAL_USERS = "sonar.security.localUsers";
  322. /**
  323. * @since 4.0
  324. * @deprecated no more used since 6.3. See https://jira.sonarsource.com/browse/SONAR-8610
  325. */
  326. @Deprecated
  327. String HOURS_IN_DAY = "sonar.technicalDebt.hoursInDay";
  328. /**
  329. * @since 4.5
  330. * @deprecated no used anymore since 5.2
  331. */
  332. @Deprecated
  333. String SIZE_METRIC = "sonar.technicalDebt.sizeMetric";
  334. /**
  335. * @since 4.5
  336. */
  337. String DEVELOPMENT_COST = "sonar.technicalDebt.developmentCost";
  338. /**
  339. * @since 4.5
  340. */
  341. String DEVELOPMENT_COST_DEF_VALUE = "30";
  342. /**
  343. * @since 4.5
  344. */
  345. String RATING_GRID = "sonar.technicalDebt.ratingGrid";
  346. /**
  347. * @since 4.5
  348. */
  349. String RATING_GRID_DEF_VALUES = "0.05,0.1,0.2,0.5";
  350. /**
  351. * @since 4.5
  352. */
  353. String LANGUAGE_SPECIFIC_PARAMETERS = "languageSpecificParameters";
  354. /**
  355. * @since 4.5
  356. */
  357. String LANGUAGE_SPECIFIC_PARAMETERS_LANGUAGE_KEY = "language";
  358. /**
  359. * @since 4.5
  360. */
  361. String LANGUAGE_SPECIFIC_PARAMETERS_MAN_DAYS_KEY = "man_days";
  362. /**
  363. * @since 4.5
  364. */
  365. String LANGUAGE_SPECIFIC_PARAMETERS_SIZE_METRIC_KEY = "size_metric";
  366. /**
  367. * @since 5.0
  368. */
  369. String CATEGORY_SCM = "scm";
  370. /**
  371. * @since 5.0
  372. */
  373. String SCM_DISABLED_KEY = "sonar.scm.disabled";
  374. /**
  375. * @since 7.6
  376. */
  377. String SCM_EXCLUSIONS_DISABLED_KEY = "sonar.scm.exclusions.disabled";
  378. /**
  379. * @since 5.0
  380. */
  381. String SCM_PROVIDER_KEY = "sonar.scm.provider";
  382. /**
  383. * @since 5.1
  384. * @deprecated since 6.3. No longer taken into consideration as all files are always imported.
  385. */
  386. @Deprecated
  387. String IMPORT_UNKNOWN_FILES_KEY = "sonar.import_unknown_files";
  388. /**
  389. * @since 5.1
  390. */
  391. String DEFAULT_ISSUE_ASSIGNEE = "sonar.issues.defaultAssigneeLogin";
  392. /**
  393. * @since 7.6
  394. */
  395. String MODULE_LEVEL_ARCHIVED_SETTINGS = "sonar.subproject.settings.archived";
  396. }