This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathidea.gradle
93 lines (84 loc) · 3.36 KB
/
idea.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
buildscript {
repositories {
if (System.getenv('VERIFY_USE_PUBLIC_BINARIES') == 'true') {
logger.warn('Production builds MUST NOT be built with public binaries.\nUse artifactory/allowed-repos for production builds.\n\n')
mavenCentral()
}
else {
maven { url 'https://gds.jfrog.io/artifactory/allowed-repos' }
}
}
dependencies {
classpath 'uk.gov.ida:verify-gradle:2.0.0-36'
}
}
import uk.gov.ida.RunConfig
apply plugin: "idea"
subprojects {
apply plugin: "idea"
}
idea {
project {
jdkName = '11'
languageLevel = '11'
}
workspace {
iws {
withXml { provider ->
def runconfig = new RunConfig(provider)
runconfig.ensureApplicationConfigurationExists(
'Config',
'uk.gov.ida.hub.config.*',
'uk.gov.ida.hub.config.ConfigApplication',
'config',
'server configuration/local/config.yml')
runconfig.ensureApplicationConfigurationExists(
'Policy',
'uk.gov.ida.hub.policy.*',
'uk.gov.ida.hub.policy.PolicyApplication',
'policy',
'server configuration/local/policy.yml')
runconfig.ensureApplicationConfigurationExists(
'SamlEngine',
'uk.gov.ida.hub.samlengine.*',
'uk.gov.ida.hub.samlengine.SamlEngineApplication',
'saml-engine',
'server configuration/local/saml-engine.yml')
runconfig.ensureApplicationConfigurationExists(
'SamlProxy',
'uk.gov.ida.hub.samlproxy.*',
'uk.gov.ida.hub.samlproxy.SamlProxyApplication',
'saml-proxy',
'server configuration/local/saml-proxy.yml')
runconfig.ensureApplicationConfigurationExists(
'SamlSoapProxy',
'uk.gov.ida.hub.samlsoapproxy.*',
'uk.gov.ida.hub.samlsoapproxy.SamlSoapProxyApplication',
'saml-soap-proxy',
'server configuration/local/saml-soap-proxy.yml')
runconfig.ensureApplicationConfigurationExists(
'StubEventSink',
'uk.gov.ida.stub.event.sink.*',
'uk.gov.ida.stub.event.sink.StubEventSinkApplication',
'stub-event-sink',
'server configuration/local/stub-event-sink.yml')
[
50242:'Remote Config',
50112:'Remote Policy',
50122:'Remote SamlEngine',
50222:'Remote SamlProxy',
50162:'Remote SamlSoapProxy',
50102:'Remote StubEventSink'
].each { port, service ->
runconfig.ensureDebugConfigurationExists(service, port.toString())
}
}
}
}
module {
//if you love browsing Javadoc
downloadJavadoc = true
//and love reading sources :)
downloadSources = true
}
}