@@ -35,45 +35,39 @@ if (settings.providers.gradleProperty("environmentName").get() != "252") {
3535 include(" intellij-plugin:features:remote-env" )
3636}
3737
38- val secretProperties : String = " secret.properties"
38+ val secretPropertiesFilename : String = " secret.properties"
3939
4040configureSecretProperties()
4141
4242downloadHyperskillCss()
4343
4444fun configureSecretProperties () {
45- try {
46- download(URL (" https://repo.labs.intellij.net/edu-tools/secret.properties" ), secretProperties)
47- }
48- catch (_: UnknownHostException ) {
49- println (" repo.labs.intellij.net is not reachable" )
50- val secretProperties = file(secretProperties)
51- if (! secretProperties.exists()) {
52- secretProperties.createNewFile()
53- }
45+ val secretProperties = file(secretPropertiesFilename)
46+ if (! secretProperties.exists()) {
47+ secretProperties.createNewFile()
5448 }
5549
56- val secretProperties = loadProperties(secretProperties )
50+ val properties = loadProperties(secretPropertiesFilename )
5751
58- secretProperties .extractAndStore(
52+ properties .extractAndStore(
5953 " intellij-plugin/educational-core/resources/stepik/stepik.properties" ,
6054 " stepikClientId" ,
6155 " cogniterraClientId" ,
6256 )
63- secretProperties .extractAndStore(
57+ properties .extractAndStore(
6458 " intellij-plugin/educational-core/resources/hyperskill/hyperskill-oauth.properties" ,
6559 " hyperskillClientId" ,
6660 )
67- secretProperties .extractAndStore(
61+ properties .extractAndStore(
6862 " intellij-plugin/educational-core/resources/twitter/oauth_twitter.properties" ,
6963 " xClientId"
7064 )
71- secretProperties .extractAndStore(
65+ properties .extractAndStore(
7266 " intellij-plugin/educational-core/resources/linkedin/linkedin-oauth.properties" ,
7367 " linkedInClientId" ,
7468 " linkedInClientSecret"
7569 )
76- secretProperties .extractAndStore(
70+ properties .extractAndStore(
7771 " edu-format/resources/aes/aes.properties" ,
7872 " aesKey"
7973 )
0 commit comments